This document is about: VOICE 1

Photon Voice 1 is the original and first major version of Photon Voice. It is now replaced by Photon Voice 2 which is refactored and enhanced. We highly recommend starting new projects with Photon Voice 2 and if possible migrating existing ones from Photon Voice 1 to Photon Voice 2. Photon Voice will be maintained for the coming months. We will fix important bugs and support new Unity versions but new features will be added only to Photon Voice 2.

TCP and UDP Port Numbers

Photon Cloud

連接到Photon Cloud可能需要,根據API,為您的應用程式的協議和目的傳入適當的端口。 在大多數情況下,您不需要擔心端口號的問題。 下表包含了Photon Cloud每個協議和每個伺服器連接使用的默認端口。


端口號 目的
5058 or 27000 UDP 客戶端到名稱伺服器(UDP)
5055 or 27001 UDP 客戶端到主伺服器(UDP)
5056 or 27002 UDP 客戶端到遊戲伺服器(UDP)
4533 TCP 客戶端到名稱伺服器(TCP)
4530 TCP 客戶端到主伺服器(TCP)
4531 TCP 客戶端到遊戲伺服器(TCP)
9090 TCP 客戶端到主伺服器(WebSockets)
9091 TCP 客戶端到遊戲伺服器(WebSockets)
9093 TCP 客戶端到名稱伺服器(WebSockets)
19090 TCP 客戶端到主伺服器(Secure WebSockets)
19091 TCP 客戶端到遊戲伺服器(Secure WebSockets)
19093 TCP 客戶端到名稱伺服器(Secure WebSockets)
Back to top