Can't connect on server from android client (works on windows)


I have a strange bug, I tested it with a custom project and the PUN demos, all works fine on a Windows client, but when I want to connect to server from an Android client, I have this error:

<i>AndroidPlayer([email protected])</i> Receive issue. State: Connected. Server: '' ErrorCode: 10061 SocketErrorCode: ConnectionRefused Message: Connection refused System.Net.Sockets.SocketException: Connection refused at System.Net.Sockets.Socket.Receive (System.Byte[] buffer) [0x0004d] in /Users/builduser/buildslave/mono/build/mcs/class/System/System.Net.Sockets/Socket.cs:2373 at ExitGames.Client.Photon.SocketUdp.ReceiveLoop () [0x00000] in <filename unknown>:0

I have no idea why Photon try to connect to localhost, I set my photon server settings with the server ip.
Note that I host my server myself as I want my smartphone to connect on the server in LAN.
I also set the player settings to require internet on android.

I use PUN Free, Unity 2017.2 and Android 7.0. Any idea on what could be wrong ?

Thanks a lot for any help.
Sign In or Register to comment.