About Store Forum Documentation Contact
Donations:
327$/mo



Post Reply 
Server IP problem
Author Message
WiLLyRS Offline
Member

Post: #1
Server IP problem
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
04-28-2011 07:23 PM
Find all posts by this user Quote this message in a reply
Dandruff Offline
Member

Post: #2
RE: Server IP problem
turn off your firewall/virus programs and try again
04-28-2011 11:53 PM
Find all posts by this user Quote this message in a reply
Post Reply