Results 1 to 5 of 5

Thread: Find external IP terminal

  1. #1
    Join Date
    Jan 2010
    Location
    Gold Coast Australia
    Beans
    42
    Distro
    Ubuntu 10.04 Lucid Lynx

    Find external IP terminal

    I need to know my external IP so that I can host a minecraft server, use RDP and many other things I have used www.whatismyip.com to get this information but is there a terminal command for this because
    Code:
    ifconfig
    only shows my local address.
    A book........ its like the internet made out of a tree
    ~An explanation of a book in the near future

  2. #2
    Join Date
    Jun 2010
    Beans
    Hidden!

    Re: Find external IP terminal

    edit; after googgling a little bit, found a better one;
    Code:
    wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
    Last edited by Verbeck; December 27th, 2010 at 11:36 PM.

  3. #3
    Join Date
    Jan 2010
    Location
    Gold Coast Australia
    Beans
    42
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Find external IP terminal

    Quote Originally Posted by Verbeck View Post
    edit; after googgling a little bit, found a better one;
    Code:
    wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
    Thanks for that it did not work completely, I was able to get my ip by going via there simplified automated page

    Code:
    $ curl www.whatismyip.com/automation/n09230945.asp
    A book........ its like the internet made out of a tree
    ~An explanation of a book in the near future

  4. #4
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Find external IP terminal

    How about simply:

    Code:
    curl ifconfig.me
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  5. #5
    Join Date
    Mar 2012
    Beans
    112

    Re: Find external IP terminal

    Quote Originally Posted by bodhi.zazen View Post
    How about simply:

    Code:
    curl ifconfig.me

    Old post, I know, but just wanted to say thanks for this. I've been wanting something like this so I could write a script to check my web server's current IP and email me if it changes for domain forwarding purposes. This is perfect.

    Cheers!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •