cafeiklan / whatismyip

Simple PHP Script to return your true external ip (wan)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

whatismyip

Simple PHP Script to return your true external ip, even works around proxies. This site is currently live at WhatsMyIP.me

The way this script works by analyzing the $_SERVER variable ( an array containing information such as headers, paths, and script locations created by the webserver) and returning the most reliable IP address possible. Please note, the only address you can really trust is REMOTE_ADDR, because it is the source IP of the TCP connection and cant be changed by spoofing/changing an http header. While it is technically possible to bidirectionally spoof IP addresses at the Border Gateway level, but you would have to have control over an ISP to do so.

About

Simple PHP Script to return your true external ip (wan)


Languages

Language:PHP 100.0%