• ARTICLES
SEARCH

How-To Geek

How to Find Your IP Address in Ubuntu Linux

In Windows, we use the command-line program ipconfig to find out our IP address. How do you find it in Ubuntu?

We will show you two locations easily accessible through the GUI and, of course, a terminal command that will get your IP address in no time.

The first location, and the easiest in most cases, is found by right clicking the network icon in the notification area and clicking Connection Information.

sshot-1

This brings up a window which has a bunch of information, including your IP address.

sshot-2

The second location, which shows you more detail than this first method, is at System > Administration > Network Tools.

sshot-3

Select the right network device, and you’ve got a ton of information at your fingertips.

sshot-4

Finally, if you can’t tear yourself away from a terminal window, the command to type in is:

ifconfig

Yes, it’s only one character different than ipconfig. Who would have guessed?

sshot-5

As it turns out, you’re always a few clicks or keystrokes away from finding your IP address in Ubuntu. Isn’t choice great?

Trevor is our resident Linux geek, but always keeps his eyes open for neat Windows tricks too.

  • Published 05/12/10

Comments (8)

  1. SebDeclercq

    Well… This concerns only the local IP address…
    Not so fun, you can’t do a lot of things with this one.

    An easy way to catch your external IP (in a terminal window) :
    curl icanhazip.com

    PS : Sorry for my English, I usually speak French ;-)

  2. Benjamin

    I prefer “ip a” over ifconfig.

  3. Claudio

    or press ALT + F2 and type gnome-terminal and after opening type in the line console /sbin/ifconfig eth0 or /sbin/ifconfig wlan0 is your network card is wireless :D

    regards.

  4. asdf-chan

    ALT+F2 –> xterm –> ifconfig -a

    Tbh, this is a rediculous tutorial.

  5. otsen82

    hi everyone, just for the benefit :)
    and for whose like to get deeper in the beautiful world of linux bash.

    1) iwconfig | grep inet:

    2) ip addr | grep

    (where may be: wlan0, wlan1, eth0, eth2, usb1, etc whatever your interface name is.)

    always linux !
    Knowledge free for all.

  6. otsen82

    Spanish Version:

    Hola a todos, solo complementando mas opciones :)
    Y para aquellos que gustan de ir mas profundo en el hermoso mundo de la terminal del linux!

    1) iwconfig [interface] | grep inet:

    2) ip addr [interface] | grep

    (donde el nombre de la [interface] puede ser: wlan0, wlan1, eth0, eth2, usb1, o cualquier nombre que tenga.)

    Siempre Linux!
    Conocimiento libre para todos!

    NOTA: Cabe señalar que en el post en ingles debido al HTML se comio la parte de “interface” ya que la puse entre signos de mayor que y menor que.

    Note: it’s important to highlight that the code above is a little bit different, I mean, due the html a word in angle brackets disappeared! here is the right one. my apologies :P

  7. sachin

    go to application->accessories->terminal and type ifconfig command. it will shaw you ip of your system

  8. Felipe

    Hello!

    Thanks it’s help me for build my intranet tests.

Enter Your Email Here to Get Access for Free:

Go check your email!