PUN Classic (v1), PUN 2 and Bolt are in maintenance mode. PUN 2 will support Unity 2019 to 2022, but no new features will be added. Of course all your PUN & Bolt projects will continue to work and run with the known performance in the future. For any upcoming or new projects: please switch to Photon Fusion or Quantum.

TCP and UDP Port Numbers

Photon Cloud

Connecting to Photon Cloud might require, depending on the API, to pass in the proper port for the protocol and purpose of your application. In most cases, you don't have to worry about port numbers. The table below contains the default ports to be used with Photon Cloud per protocol and per server connection.

Default Ports by Protocol and Purpose

Port Number Protocol Purpose
OS Self Assigned Port UDP Communication port of the Peer.
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)
9090 TCP Client to Master Server (WebSockets)
9091 TCP Client to Game Server (WebSockets)
9093 TCP Client to Nameserver (WebSockets)
19090 TCP Client to Master Server (Secure WebSockets)
19091 TCP Client to Game Server (Secure WebSockets)
19093 TCP Client to Nameserver (Secure WebSockets)

For more information about the UDP Ports see the FAQ page.

Back to top