Quote:
Originally Posted by root88
PHP Code:
int ip = g_pCvar->FindVar("hostip")->GetInt();
|
"hostip" may not always return the real (public) IP address, such as for example if your server runs behind a router/NAT. In these situations, you may actually see the RFC1918 IP address ranges, e.g. 10.xx.xx.xx, 172.16.xx.xx-172.31.xx.xx and/or 192.168.xx.xx (the one that your server actually listens to on the actual machine).
__________________