Hi,
I need some help with setting up a server clients on the same wifi connection.
My test situation is as follows:
1 server, connected via wifi.
1 client, connected via wifi.
(Using the Unity masterserver.)
Server creation succeeds. However, the client can not connect to the server. It fails with:
NetworkConnectionError.ConnectionFailed “The connection request to 192.168.178.49:50000 failed. Are you sure the server can be connected to?”
Anyone know why?
How is your clients server code set up? It appears to me you’re telling the client to look at a specific MasterServer IP rather than Unity’s server. So if your client is using the “MasterServer.ipAddress = string” then it won’t connect to Unity’s MasterServer.
No, it’s connecting to the masterserver just fine. It’s already received the hostdata for the server from the masterserver, which is what it’s using to try to connect.
– To clarify:
When I run client on pc (not wifi) and server on the same pc (not wifi), it works.
When I run client on tablet (wifi) and server on pc (not wifi), it works.
When I run client on pc (not wifi) and server on tablet (wifi), it works.
When I run client on tablet (wifi) and server on another tablet (wifi), it does NOT work.