Hi all. I'm trying to do this to get the external IP trough c++. But I'm not getting it to work. I'm trying to use it in a DLL which will get injected into an other process. And after i got the external ip i would like to check it with ip's stored in the dll. If read things about recieving it from sites that show your ip address. But unfortunatly im not getting it to work:(. So if someone can pls help me:D
So it would be smth like this:
CODE
#define ALLOWED_IPS = (11.11.11.11) || (11.11.11.12) etc etc
CHAR GetExternalIp(void)
{
//Dunno? need you guys help here:D
}
CHAR Ip = GetExternalIp();
if(Ip =! ALLOWED_IPS)
{
MessageBox(NULL, "Your IP is not in the list! Aborting...", "Error!", MB_ICONASTERISK + MB_OK);
}
This post has been edited by bruce123: 11 May, 2007 - 09:05 AM