View Single Post
  #6  
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
Default

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

nano -w .profile

and than paste following:

Quote:
alias myip='curl -s http://www.whatismyip.com/automation/n09230945.asp | 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