Winsock
Ok, I have made a program that is a server and the client connects to the server to get the number of questions it should ask the client. So, it works, but in order to make the client connect to the server i am confused.
The problem (maybe a problem) is that when the client connects to the server it uses the ip of the computer it will connect to and the hostname is localhost.
for example:
SOCKADDR_IN sockaddr;
sockaddr.sin_addr = inet_addr("MY COMPUTER ADDRESS");
Now, I am guessing that using the computer IP4 address like "192.168.x.xx" will only work if the client is in the same network as the server. What if the people trying to connect to the server outside the network, will it work using my computer ip address, or will I have to use the ip address of my network, the one found by going to whatismyip.com?
It's a really cool program, I will release the source to you guys right after I get this small bug fixed. Thanks.