Risifo
June 11th, 2002, 04:40 PM
I just started trying to learn WinSock, heh, just dove right in after reading creating a non-blocking server from gamedev.net, and I use that to write a simply non-blocking server. You can connect to it, and if you press certain buttons it will react. But one thing I want to do, is to get the server IP so that I can set up admin access for me without entering a username and password(Which I also want to set up, but don't know how to output from client, and input strings). First I want to find server ip.
I tried
char *ServerIP = inet_ntoa(Server_Address.sin.addr);
but it outputs 0.0.0.0
Wierd... please help
I tried
char *ServerIP = inet_ntoa(Server_Address.sin.addr);
but it outputs 0.0.0.0
Wierd... please help