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

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -