TCP and UDP Port Numbers
Find a list of ports as configured by default for photon chat and photon realtime in each respective page.
photoncontrol automatically sets up the Windows Firewall to allow Photon Server to communicate on the network. If you don't use Photon Control, check out the firewall settings page for how to do so. Make sure all operating systems, firewalls and routers in your network are set up to allow traffic on the required ports as needed.
Define your own ports within the photon server configuration.
The table below contains the default ports configured per listener in PhotonServer.config as included in the SDK package.
Default Ports By Protocol And Purpose
|4520||TCP||(Internal, S2S) Game Server to Master Server|
|5058 or 27000||UDP||Client to Nameserver (UDP)|
|5055 or 27001||UDP||Client to Master Server (UDP)|
|5056 or 27002||UDP||Client to Game Server (UDP)|
|4533||TCP||Client to Nameserver (TCP)|
|4530||TCP||Client to Master Server (TCP)|
|4531||TCP||Client to Game Server (TCP)|
|9093||TCP||Client to Nameserver (WebSockets)|
|9090||TCP||Client to Master Server (WebSockets)|
|9091||TCP||Client to Game Server (WebSockets)|