How to Check the IP Address in Linux

Method 1 of 2:

Finding Your Public IP Address

  1. How to Check the IP Address in Linux Picture 1
    Understand when to use this method. The public IP address is what websites and services see when you access them from your computer. If you want to try to connect to your computer via a remote connection that isn't on the same network, you'll need the public IP address.
  2. How to Check the IP Address in Linux Picture 2
    Open Terminal. Click or double-click the Terminal app icon, or press Ctrl+Alt+T to bring up the Terminal window.
  3. How to Check the IP Address in Linux Picture 3
    Enter the public IP command. Type curl ifconfig.me into the Terminal window. This command retrieves your public IP address from a website.[1]
  4. How to Check the IP Address in Linux Picture 4
    Press Enter. Doing so runs the command.
  5. How to Check the IP Address in Linux Picture 5
    Wait for your public IP address to appear. The IP address that appears below the command you entered is the public IP address for your network.
Method 2 of 2:

Finding Your Private IP Address

  1. How to Check the IP Address in Linux Picture 6
    Understand when to use this method. If you're trying to find the IP address of your computer within your Wi-Fi network (e.g., if you want to forward your router for your computer), you'll need to know the IP address.
  2. How to Check the IP Address in Linux Picture 7
    Open Terminal. Click or double-click the Terminal app icon, or press Ctrl+Alt+T to bring up the Terminal window.
  3. How to Check the IP Address in Linux Picture 8
    Enter the "Show IP" command. Type ifconfig into the Terminal window. Other commands you can try include the following:
    1. ip addr
    2. ip a
  4. How to Check the IP Address in Linux Picture 9
    Press Enter. Doing so runs your command and displays the IP address information of any network items, including your computer.
  5. How to Check the IP Address in Linux Picture 10
    Find your computer's heading. You'll usually find your computer's information under the "wlo1" (or "wlan0") heading, just right of the "inet" tag.[2]
  6. How to Check the IP Address in Linux Picture 11
    Review the private IP address. The IPv4 address is to the right of the "inet" tag. This is the IP address of your computer on your current network.
    1. You can usually see the IPv6 address next to the "inet6" tag. The IPv6 address is less commonly used than the IPv4 address.
  7. How to Check the IP Address in Linux Picture 12
    Try the "hostname" command. On some Linux versions, such as Ubuntu, you can bring up your computer's IP address by typing in hostname -I (that's a capital "i", not a lower-case "L") and pressing Enter.
3.3 ★ | 4 Vote

May be interested

  • How to Create and Edit Text File in Linux by Using TerminalPhoto of How to Create and Edit Text File in Linux by Using Terminal
    this wikihow teaches you how to use the terminal app in linux to create a text file. after doing so, you can use one of linux's built-in text editors to make changes to the file. open terminal. to do so, click menu, then find the terminal...
  • How to Install DebianPhoto of How to Install Debian
    debian is an operating system based on the gnu/linux build. the debian operating system, like most other linux distributions, is free and open source. it is a popular operating system for both desktop and server use, spawning several...
  • How to Install Software in Debian LinuxPhoto of How to Install Software in Debian Linux
    this wikihow teaches you how to use tools built into debian linux to install software packages. if you're using the desktop version of debian, you can use synaptic to install application packages with a point-and-click graphical interface....
  • How to Change Your Desktop Wallpaper on Linux MintPhoto of How to Change Your Desktop Wallpaper on Linux Mint
    this wikihow will show you different ways to change the linux mint desktop wallpaper. obtain the picture you want for your wallpaper. save it on your computer.
  • How to Install Google Chrome on Linux MintPhoto of How to Install Google Chrome on Linux Mint
    google chrome is not in the default linux repositories, so if you would like to install it through the terminal, you would have to add the right repository. instead of getting into this long process, just follow the above steps to install...
  • How to Uninstall Programs in Linux MintPhoto of How to Uninstall Programs in Linux Mint
    the linux mint operating system offers thousands of different programs and applications. but what happens when you want to uninstall one? here's how to do it! click menu. go to the applications you want to remove. right click on the...