This document is about: FUSION 2
SWITCH TO

STUN Servers

What is a STUN Server?

A STUN (Session Traversal Utilities for NAT) is a network protocol used to assist devices behind NAT (Network Address Translation) or a firewall in communicating with other devices on the internet. STUN servers are primarily utilized in VoIP (Voice over Internet Protocol), video conferencing, and other real-time communication applications.

Key Functions of a STUN Server

  1. Public IP Discovery: STUN servers assist devices in discovering their public IP address assigned by the NAT device.
  2. NAT Type Detection: They help in determining the type of NAT behind which the device is located (e.g., full cone, restricted cone, port-restricted cone, symmetric NAT).
  3. Relay Candidate Discovery: They provide the information necessary for devices to establish peer-to-peer connections by determining the NAT traversal strategy.

Usage of STUN Servers on Photon SDKs

Photon Fusion relies on 3rd Party STUN Servers to enable direct connections between client and server/host peers, playing a crucial role in facilitating communication and establishing seamless connections for Photon Fusion.

By default, Photon Fusion uses the publicly available Google STUN Servers, but this list can be extended in case these are not available.

Below is shown how to pass a custom STUN Server to Fusion:

C#

// When starting the NetworkRunner
runner.StartGame(new StartGameArgs {
  // ...
  // Pass a custom STUN Server
  CustomSTUNServer = "stun1.l.google.com:19302"
});

List of Public 3rd Party STUN Servers

The STUN servers listed below can be used to extend the default list of servers utilized by Photon Fusion.

text

stun.12voip.com:3478
stun.1und1.de:3478
stun.3cx.com:3478
stun.aa.net.uk:3478
stun.acrobits.cz:3478
stun.actionvoip.com:3478
stun.annatel.net:3478
stun.antisip.com:3478
stun.avigora.fr:3478
stun.cablenet-as.net:3478
stun.callromania.ro:3478
stun.commpeak.com:3478
stun.cope.es:3478
stun.counterpath.com:3478
stun.counterpath.net:3478
stun.dcalling.de:3478
stun.dus.net:3478
stun.easyvoip.com:3478
stun.ekiga.net:3478
stun.epygi.com:3478
stun.faktortel.com.au:3478
stun.freeswitch.org:3478
stun.gmx.de:3478
stun.gmx.net:3478
stun.halonet.pl:3478
stun.internetcalls.com:3478
stun.intervoip.com:3478
stun.ipshka.com:3478
stun.it1.hr:3478
stun.l.google.com:19302
stun.linphone.org:3478
stun.liveo.fr:3478
stun.myvoiptraffic.com:3478
stun.netgsm.com.tr:3478
stun.nfon.net:3478
stun.ooma.com:3478
stun.pjsip.org:3478
stun.schlund.de:3478
stun.sigmavoip.com:3478
stun.sip.us:3478
stun.sipgate.net:10000
stun.sipgate.net:3478
stun.siplogin.de:3478
stun.siptraffic.com:3478
stun.sma.de:3478
stun.solcon.nl:3478
stun.solnet.ch:3478
stun.sonetel.com:3478
stun.sonetel.net:3478
stun.srce.hr:3478
stun.t-online.de:3478
stun.tel.lu:3478
stun.telbo.com:3478
stun.tng.de:3478
stun.twt.it:3478
stun.uls.co.za:3478
stun.usfamily.net:3478
stun.vivox.com:3478
stun.vo.lu:3478
stun.voip.aebc.com:3478
stun.voip.blackberry.com:3478
stun.voip.eutelia.it:3478
stun.voipbuster.com:3478
stun.voipcheap.com:3478
stun.voipgate.com:3478
stun.voipinfocenter.com:3478
stun.voipplanet.nl:3478
stun.voippro.com:3478
stun.voipstunt.com:3478
stun.voipwise.com:3478
stun.voipzoom.com:3478
stun.voys.nl:3478
stun.voztele.com:3478
stun.zadarma.com:3478
stun1.faktortel.com.au:3478
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
Back to top