- Home /
Server & client on same wifi, error
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?
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.
are you sure your client port and server port are the same? also try logging in with your local ip address on both server and client to make sure it isnt your ip etc
Yeah they're the same, I'm getting the hostdata from the masterserver.
It works fine when either the client or the server is not on the wifi..
so when they are on the same computer is when it doesnt connect? that is strange, i cant think of what would causethat specifically sorry
Answer by _spacemonkey_ · Aug 11, 2014 at 04:45 PM
I have the exact same problem. Also setting useNAT to true or false does not make a difference..
This is an old post. Anyone has an answer yet??