View Single Post
Old 20th August 2010, 11:51
damir damir is offline
Senior Member
Join Date: Jun 2006
Posts: 375
Thanks: 11
Thanked 51 Times in 42 Posts

This is how i do it on my Mac. Open the terminal:

nano -w .profile

and than paste following:

alias myip='curl -s | grep -o '[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*.[0-9]*''
Save and quit the file. Afte that just type myip and you will get you external IP.
Reply With Quote