
Whether you are running your own home web server, need to remotely access your machine, or even were just curious, you may have found the need to find your system’s current external IP address. Many people use whatismyip.com to find out this information, but over the past few years I’ve been using an alternative service named icanhazip.com.
The tongue-in-cheek name is easy to remember and gives you your IP address reliably and without ads covering the screen. Someone told me about it a while back and I never knew about the story behind it or who ran it, until now.
Rackspace employee Major Hayden runs icanhazip.com as a service to the general internet community. What is great about the site is that there are no ads, text or other “stuff” along with your IP. This allows you to build the domain into scripts to automatically determine what your public IP address is from any system on the earth.
For example, if you are on a linux system with command-line only access, you could simply type ‘curl icanhazip.com‘ and instantly get the public IP of the system.
The actual code behind displaying this content isn’t difficult. For example if you are implementing it on IPv4 only you could use the code:
<?php echo $_SERVER["REMOTE_ADDR"] ; ?>
Icanhazip.com has some additional features he recently rolled out. IPv6 is now included on the domain – if you are on an IPv6 system it will look up the AAAA record of the domain and return your IPv6 public internet address. To force one or the other, you can use ipv4.icanhazip.com or ipv6.icanhazip.com.
Either way, it is a great site to remember for that occasion when you need to find out your public IP address.



















Jack Cola
Sunday, March 27, 2011 at 10:26 AMI’ve been using http://www.canyouseeme.org – not only does it tell you your IP address, it also tells if you if have ports opened or closed.
Ben3
Sunday, March 27, 2011 at 12:05 PMFinally a service that provides your IP address without the bull.
trk
Sunday, March 27, 2011 at 1:02 PMI use http://www.thiscomputer.info as the URL is easy to remember, and it gives a decent amount of information quickly (all in plain text)
Shaun
Sunday, March 27, 2011 at 7:04 PMYou can still use whatismyip.com without the ‘bull’
http://www.whatismyip.com/automation/n09230945.asp
Treggs
Monday, March 28, 2011 at 1:44 AMWhy not create a free dyndns host an use either your router of dyndns’s software to keep it updated? Never need to remember or know your IP again.
LesterTime
Sunday, April 3, 2011 at 6:47 AMI have used a few ip address lookup myself but recently I found http://sexyip.com with few letters to type and easy on the eye:-)
James Wade
Monday, August 8, 2011 at 7:43 PMCheckout this pretty IP lookup: http://ip.phurix.net/