Was poking around ServerFault this morning and came across a great one-liner command using curl which will tell you the device’s external facing IP address. This probably isn’t anything new but it was something that I just haven’t thought of until now.

curl icanhazip.com

Icanhazip.com is just a simple output of the IP address of the accessor, so it is really clean and simple, just how I like it. It is really easy to set up by yourself if you have a domain not doing anything. In index.php, place:

$ip=@$REMOTE_ADDR;  
echo "$ip";

 

You May Also Like

Google Voice Voicemail with Any Existing Phone Number

Google Voice just announced that it will officially support any existing phone…

New systemBash Theme

New theme with hopefully a better design! Drop me a line to…

I was watching I Hate My 30’s – I Have To Go #30 when I realized:

Just testing out the Blog function from Joost. I’m writing this directly…

Visual.Syntax is my choice for code highlighting

I am using the Visual.Syntax code highlighting plugin by Matthew Delmarter. There…