Edit Article

Four Methods:Use the Ubuntu InterfaceEnter a Terminal Command in Most Linux BuildsEnter a Terminal Command in Unix, "Unixish", and some Linux BuildsAnother Terminal Command for Ubuntu/Unix/Linux

No matter what build of Linux or Unix you are running, there are methods for checking your internal IP address from using a simple graphical interface to delving deeper into network information.

Ad

Method 1 of 4: Use the Ubuntu Interface

  1. Check Ip Address in Linux Step 1 Version 2.jpg
    1
    Right click the network icon in your notifications area. In most builds the icon is two vertical arrows pointing up and down, located near the date and time.
    • If your network icon is not displayed, you can add it back by right clicking the notification area, selecting "Add to Panel," and then "Network Manager".
    • If your network icon still won't display, navigate to System > Administration > Network Tools and select your network device from the drop down menu (usually "Ethernet Interface eth0"). The 10 digit number that displays is your IP address.
    Ad
  2. Check Ip Address in Linux Step 2 Version 2.jpg
    2
    Click Connection Information. This should open a window with information on your network connections, including your IP Address.

Method 2 of 4: Enter a Terminal Command in Most Linux Builds

  1. Check Ip Address in Linux Step 3 Version 2.jpg
    1
    Open Terminal. You can find this in your list of applications or by searching for "terminal".
  2. Check Ip Address in Linux Step 4.jpg
    2
    Enter this command: ip addr show . This should return information on each ethernet device connected.
  3. Check Ip Address in Linux Step 5.jpg
    3
    Each device's IP address is listed after "inet".
    • If you're not sure which device you're looking for, you most likely want "eth0", the first ethernet adapter recognized. To only view information for eth0, enter ip addr show eth0 .

Method 3 of 4: Enter a Terminal Command in Unix, "Unixish", and some Linux Builds

  1. Check Ip Address in Linux Step 6.jpg
    1
    Open a terminal. You can find this in your list of applications or by searching for "terminal".
  2. Check Ip Address in Linux Step 7.jpg
    2
    Enter this command: /sbin/ifconfig . This should display a large block of network information.
    • If you get an error message that mentions your lack of administrative privileges, enter sudo /sbin/ifconfig .
    • If you are using Solaris or some other Unix builds, you may need to enter /sbin/ifconfig -a to display information for more than one device.
    • If you get a message telling you that ifconfig is deprecated, switch to the instructions for Enter a Terminal Command in recent Linux builds above.
  3. Check Ip Address in Linux Step 8.jpg
    3
    Find the IP address for each device listed after "inet adr".
    • If there is too much information for you to find your IP addres, enter /sbin/ifconfig | less to limit the amount displayed, or /sbin/ifconfig | grep 'inet addr:' to only display the IP address.
    • If you're not sure which device you're looking for, you most likely want "eth0", the first ethernet adapter recognized. To only view information for eth0, enter /sbin/ifconfig eth0 .

Method 4 of 4: Another Terminal Command for Ubuntu/Unix/Linux

  1. Check Ip Address in Linux Step 9.jpg
    1
    Open a terminal.
  2. Check Ip Address in Linux Step 10.jpg
    2
    Enter this command: hostname -I (that's a capital I as in Idaho)
    • If you have a single interface active, you will get back a single IP address, without any additional text.
      •  % hostname -I
      • 192.168.1.20
    Ad

We could really use your help!

Can you tell us about
seizing opportunities?
Yes
No
seizing opportunities
how to YOLO
Can you tell us about
leather jackets?
Yes
No
leather jackets
how to break in a leather jacket
Can you tell us about
shaving?
Yes
No
shaving
how to make your own shaving cream
Can you tell us about
introverted behavior?
Yes
No
introverted behavior
how to be more introverted if you're an extrovert
Thanks for helping! Please tell us everything you know about
...
Tell us everything you know here. Remember, more detail is better.
Tips
Provide Details.
Please be as detailed as possible in your explanation. Don't worry about formatting! We'll take care of it. For example:
Don't say: Eat more fats.
Do say: Add fats with some nutritional value to the foods you already eat. Try olive oil, butter, avocado, and mayonnaise.

Tips

  • If you're looking for your external IP address instead, simply visit a website such as http://www.whatismyip.org , or google "what is my ip?" for many similar websites.

Article Info

Categories: Linux

In other languages:

Español: Cómo ver la direción IP en Linux, Italiano: Come Controllare l'Indirizzo IP su Linux, Deutsch: Eigene IP Adresse unter Linux herausfinden

Thanks to all authors for creating a page that has been read 201,738 times.

Did this article help you?
Yes No

Become
an Author!

Write an Article