php - My script does not recognize my IP -


i use geoiploc library. created simple script variables:

$ip = $_server["remote_addr"]; $my_country_code = getcountryfromip($ip, "code"); 

and uploaded script server. result: variable $ip returns ip, , variable $my_country_code returns code of country, good!

that same script uploaded server (http://subdomain.my-domain.com, belongs job). result: variable $ip does not return ip, ip: 192.168.211.xxx. therefore, variable $my_country_code not return country code.

in both cases use home pc.

what's going on?


Comments

Popular posts from this blog

c++ - list<myClass<int> * > sort -

c - Defining floating point constants, how many digits are useful? -

C# Apple Bonjour - how to monitor service records within Windows -