Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Problem connecting to self hosted photon server

$
0
0
Hi.
I have a big problem connecting to my self hosted photon server . Photon server hosted in a VPS windows server 2008 r2 . When I try to connect to my server from unity , I get this error :

TimeoutDisconnect while connecting to: "MyServerPublicIpAddress". Check if the server is available.

(PhotonNetwork.connectionStateDetailed value is 'ConnectingToMasterServer' until i get above error)

What I have done so far :

In Server :
- Photon server v3 is running in my server . Loadbalancing(MyCloud) is running , also RunTestClient works properly.
- GameServerIP set to my PublicIPAaddress.
- Firewall is off
-There is not physical router available for me because my server is running on VPS.( I Also call technical team which I bought my VPS from them but they answer me that you should use some software to configure port forwarding and there is no router available for you , So I don't know if I still need configure port forwarding or not ).
- I used command "netstat -an" and the result was something like this :
Proto               Local Address                              Foreign Address                        State
...
UDP                MyPublicIPAddress:5055               *.*
UDP                MyPublicIPAddress:5056               *.*
UDP                MyPublicIPAddress:5057               *.*
...



In Client :
-Firewall is off
-PhotonNetwrokSetting in unity is set to self hosted and IP is set to my server Public IP and port is set to 5055.

I actually test self hosting in my local network and clients in the same network can connect to server without any problem.

Please help me because I really don't know what else should I do?

Thanks for your answers.

Viewing all articles
Browse latest Browse all 15755

Trending Articles