im using 2 servers, photon PUN and one of my own for authentication and database requests.it was working fine!when i was binding server with local address but now pun stucks on connecting to masterserver and then i get a warning message in console that says connectiontimeout,and it shows( my other servers port and ip address) that it tried to connect to my other server rather than pun how should it be fixed?
I don’t know if I understand correctly.
It sounds like you changed the server’s address but didn’t update the clients.
When you host Photon yourself, you have to make sure there is a route to the server for the clients. If there is no route for your clients to the IP of your server, then it won’t work. This is hosting 101 and we assume you know that or know how to learn it.
The server’s port must be available, too (not blocked by firewall). In best case, you have a public, static IP for the server.
For PUN (and Photon’s Loadbalancing in general), you have to setup the GameServer IP. In the easiest case, you can setup the GameServer IP via PhotonControl. In worst case, you edit the config files. This step is important when you can connect to your master server but then fail to join a room (which are handled by another process/machine).
You need to setup the PhotonServerSettings in the client to match your master server’s address.
tobiass!i figured it out,thanks anyway !!