Hi guys, I have a little problem with the connection with a server. I say little because in local it works, but in local with the global ip no. Well, here the code:
This one, the first test, works.
Code:
SockAddr server;
server.setLocal(i);
if(!connection.clientConnectToServer(server)) Exit("unable to connect wtf");
Then I changed server.setLocal(i) to
server.setIP("172.0.0.1",i)
server.setIP("192.168.1.2",i)
server.setIP("192.168.1.2", 80)
and every time it worked.
Now, setted all the communication I would like to use the server and the client on different computers, so I tried to change this to:
server.setIP("xxx.xxx.xxx.xxx",i)
server.setIP("xxx.xxx.xxx.xxx",80)
I've tried server.setGlobal too
but "unable to connect wtf"
what am I missing? I've already opened the 65535 port on my router and both client and server run on the same computer! Thanks in advice