I am hosting a photon server on my windows pc and other windows users can connect just fine. However, when other mac users try to connect, they don’t connect to the server. I am going through exit game’s mmo example and am using the UDP protocol. When I try changing from UDP to TCP, it gives me some error, and since I’m not experienced with photon just yet, I don’t really know how to figure out the solution to that error.
I’m trying to connect to the example through a web player. So do Macs not work well with UDP in general or is it just a photon thing?
Unix systems work well with UDP. Sorry that I cant be more specific, but the problem is not the choice of the OS.
Alright. I assumed that Macs would be able to connect with UDP. I will post this over at exit game’s forums too. It may just be something with photon. :?
I would take it as granted that it is neither but that you try to use the osx unity webclient and connect through “text url” instead of ip.
that will not work due to a bug in unity that prevents the webplayer from resolving the URI to get its IP for connection.
but thats documented in the photon unity example
A little cross-posting to update you all:
There is no general issue with UDP on Mac or the Unity WebPlayer for Mac. We had a problem with the way we resolved URLs to IPs, so you could only use IPs to connect to (e.g. “127.0.0.1:5055”).
This is fixed in the v5.7.3 RC3 SDKs, available now.
Make sure to use Client SDKs v5.7.3 and Server SDK 2.0.0 RC3 and up.
Our Unity SDK includes the web-player build of the realtime-demo. This resolves our demo-server’s name (not using IP anymore) and runs on UDP.
To test on your Photon server, open
\demo-realtime-unity\Assets\Photon\Game.cs and change the server-address to something like:
ipPort = “192.168.x.y:5055”;
X and Y have to be your windows server’s local-network ip (unless it has a public ip).
If you still encounter issues, it might be interesting to check if some firewall blocks the traffic.
Hope that helps.
Yup. Works great. Fixed the problem, thanks. 