This article originally appeared on www.phpfreelancer.org.
Many times when I checking for example access or error logs, I need to know my public or external IP address (these days most people by now should be using NAT at home because their Internet access router configures it out of the box so that they cannot simply use ifconfig or ipconfig to see which IP address is in use).
To do so I would have more or less two options:
Read more...