How to Check IP Address on Linux

Find your public IP address

How to Check IP Address on Linux Picture 1

Know when to use this method. A public IP address is information that websites and services see when you access it from your computer. If you want to connect to a computer via a remote connection that is not on the same network, you need a public IP address.

How to Check IP Address on Linux Picture 2

Open Terminal. Double-click the Terminal application icon or press the Ctrl+ Alt+ key combination Tto open the Terminal window.

How to Check IP Address on Linux Picture 3

Enter the public IP command. You will enter the command curl ifconfig.meinto the Terminal window. This is a command that gets your public IP address from a website.

How to Check IP Address on Linux Picture 4

Press ↵ Enter. This deploys the command.

How to Check IP Address on Linux Picture 5

Wait for your public IP address to appear. The IP address shown below the command you entered is the public IP address for your network.

Find your private IP address

How to Check IP Address on Linux Picture 6

Know when to use this method. If you want to find the IP address of a computer on a Wi-Fi network (such as when you want to forward a router to a computer), you will need to know the private IP address.

How to Check IP Address on Linux Picture 7

Open Terminal. Click or double-click the Terminal application icon or press the Ctrl+ Alt+ key combination Tto open the Terminal window.

How to Check IP Address on Linux Picture 8

Enter the "Show IP" command. Enter the command ifconfiginto the Terminal window. Here are a few other commands you can try:

ip addr

ip a

How to Check IP Address on Linux Picture 9

Press key ↵ Enter. This will execute the command and display IP address information for every device connected to the network, including your computer.

How to Check IP Address on Linux Picture 10

Find the computer's title. Your computer's information is usually displayed under the "wlo1" (or "wlan0") heading, just to the right of the "inet" tag.

How to Check IP Address on Linux Picture 11

View private IP address information. The IPv4 address appears to the right of the "inet" tag. This is the IP address of the computer on your current network.

You can see the IPv6 address next to the "inet6" tag. IPv6 addresses are less used than IPv4 addresses.

How to Check IP Address on Linux Picture 12

Try the "hostname" command. On some versions of Linux, such as Ubuntu, you can see your computer's IP address by entering the command hostname -I(this is a capital "i", not a lowercase "L") and pressing the key ↵ Enter.

4 ★ | 1 Vote

May be interested

  • How to Uninstall Software on UbuntuPhoto of How to Uninstall Software on Ubuntu
    in this article, tipsmake will show you how to uninstall software on a computer running the ubuntu linux operating system, and also show you how to remove ubuntu from your computer. if your computer runs linux and another operating system simultaneously, you can remove the ubuntu linux partition.
  • How to Uninstall Ubuntu Operating SystemPhoto of How to Uninstall Ubuntu Operating System
    are you wondering if ubuntu is no longer the right operating system for you and you want to remove this operating system from your system? removing ubuntu is relatively easy when it is the only operating system on your computer, but if it is installed alongside windows, the removal process will be a bit more difficult. below we will show you how to remove ubuntu.
  • How to Unzip Files on LinuxPhoto of How to Unzip Files on Linux
    today's wikihow will show you how to decompress a compressed folder on a linux operating system using the command line in terminal.
  • What is UID in Linux? How to find and change the UIDPhoto of What is UID in Linux? How to find and change the UID
    if you've ever interacted with linux systems, chances are you've come across these two words, uid and gid. if you are not familiar with them, let's dig deeper through the following article.
  • How to install multiple Java versions on CentOS 8Photo of How to install multiple Java versions on CentOS 8
    java is one of the most widely used high-level programming languages. in this article, readers will learn how to install different versions of java on centos 8.
  • Flow control in ShellPhoto of Flow control in Shell
    while writing a shell script, there may be a situation when you need to follow an external path 2 provided. so you need to create usage of conditional commands that allow your program to make accurate decisions and perform the right actions.