Little Girl's Mostly Linux Blog

CheckMyIP

Check my IP

This page was last updated on October 09, 2009.

Internal (LAN) IP

  • To check your internal (LAN) IP, type this command in a terminal window:
  • ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'

External (WAN) IP

  • To check your external (WAN) IP, type any one of these commands in a terminal window:
  • wget www.whatismyip.com/automation/n09230945.asp -O - -q; echo

  • Or:
  • curl http://www.whatismyip.org; echo

  • Or:
  • wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'


Obligatory Happy Ending

And they all lived happily ever after. The end.

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: WordPress Classic. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.