cliftonsnyder.net - code

ip.php [visit]

A simple PHP script that outputs the requester's IP address. This can be useful if you have a router that is doing any kind of network address translation (NAT) and you want to figure out what your "external" IP address is.

source