Separate machines can't play with each other
Options
Hello dear developers! I recently faced a problem when 2 separate machines are unable to play with each other. Both clients connect to master server but don't see each other. I have tried creating all types of lobbies, tried skipping the lobby creation, but nothing seems to work. I have a text box that shows how many people are actually online now (PhotonNetwork.CountOnMaster.. something like that). So my question is, what is so crucial about the multiplayer connection process?
P.S. both clients use AsyncLoad, and same GameVersion.
P.S. both clients use AsyncLoad, and same GameVersion.
0
Best Answer
-
You should set a region code in the PhotonServerSettings. This disables Best Region selection which may make clients end up in different regions.
Turn on the SupportLogger to figure out which regions clients connected to. If one machine picked us and the other usw (as example), then players in the differing regions don't find one another.
https://doc.photonengine.com/en-us/pun/current/lobby-and-matchmaking/matchmaking-and-lobby#matchmaking_checklist
You can also use the Region Whitelist in the application dashboard to just allow one region for any client.
https://doc.photonengine.com/en-us/pun/current/connection-and-authentication/regions5
Answers
-
You should set a region code in the PhotonServerSettings. This disables Best Region selection which may make clients end up in different regions.
Turn on the SupportLogger to figure out which regions clients connected to. If one machine picked us and the other usw (as example), then players in the differing regions don't find one another.
https://doc.photonengine.com/en-us/pun/current/lobby-and-matchmaking/matchmaking-and-lobby#matchmaking_checklist
You can also use the Region Whitelist in the application dashboard to just allow one region for any client.
https://doc.photonengine.com/en-us/pun/current/connection-and-authentication/regions5 -
Thank you very much, Tobias, the problems seems to be solved. Two machines (PCs) are now able to see each other. Further testing on a mobile platform will show if the problem is completely gone.You should set a region code in the PhotonServerSettings. This disables Best Region selection which may make clients end up in different regions.
Turn on the SupportLogger to figure out which regions clients connected to. If one machine picked us and the other usw (as example), then players in the differing regions don't find one another.
https://doc.photonengine.com/en-us/pun/current/lobby-and-matchmaking/matchmaking-and-lobby#matchmaking_checklist
You can also use the Region Whitelist in the application dashboard to just allow one region for any client.
https://doc.photonengine.com/en-us/pun/current/connection-and-authentication/regions
Thank you very much, Tobias, the problems seems to be solved. Two machines (PCs) are now able to see each other. Further testing on a mobile platform will show if the problem is completely gone.0