Whats my IP tool
Public IP address
3.145.58.158
2024-11-21T07:47:03+01:00
ISP: ec2-3-145-58-158.us-east-2.compute.amazonaws.com
Tested value | IP | IPv6 |
---|---|---|
REMOTE_ADDR | 3.145.58.158 | |
HTTP_FORWARDED | n/a | |
HTTP_FORWARDED_FOR | n/a | |
HTTP_X_CLUSTER_CLIENT_IP | n/a | |
HTTP_X_FORWARDED | n/a | |
HTTP_X_FORWARDED_FOR | n/a | |
HTTP_CLIENT_IP | n/a |
About this "Whats my IP" tool
This tool just display you publicly displayed IP address. This is not hacking or anything fancy or invasing to your privacy.
Also result IP is not 100% your real IP because it depends on your network and internet provider setup or IP address could by proxy server forwarded.
Therefore there is tested mutiple values as seen in table "Tested value". Testing is based on PHP language.
REMOTE_ADDR
$_SERVER['REMOTE_ADDR']
PHP server evironmental variable with IP address from which the user is viewing the current page.
Can contain the client's IP address. This IP address could be value of internal network behind the proxy server.
In this case other variables might contain the IP address.
X_FORWARDED_FOR or HTTP_X_FORWARDED_FOR
$_SERVER['HTTP_FORWARDED']
,
$_SERVER['HTTP_FORWARDED_FOR']
,
$_SERVER['X_FORWARDED_FOR']
,
$_SERVER['HTTP_X_FORWARDED_FOR']
Those HTTP header fields are commonly used for identifying the origin of IP address of a client connecting to website.
This values could set by proxy server which can differ from the one in $_SERVER['REMOTE_ADDR']
.
Therefore there is checked also thouse values if exists. Which IP to use if exist depend on use case of its value and purpose.
X_FORWARDED_FOR and HTTP_X_FORWARDED_FOR are not standardized and are altered and standardized by HTTP_FORWARDED and HTTP_FORWARDED_FOR.
Other header fields
$_SERVER['HTTP_X_CLUSTER_CLIENT_IP']
,
$_SERVER['HTTP_CLIENT_IP']
Different proxy servers may have alternative fields and therefore some of this alternatives are added to testing. (Due lack of a standardisation.)
Why is there this tool
This tool could be helpful for testing you public displying IP address. You could need this values for Analytics filtering out your requests/hits/actions. Also test your proxy server and if there are right or different values. Or just check your static IP for setups.