How to Check IP Address in Linux

How to Check IP Address in Linux

IP address or internet protocol address is a way to determine how to approach that network. Every device on your network has its own IP address and the entire network has its own public IP address. So How to Check IP Address in Linux?

Though IP address change every time you turn your device on, but your router’s IP address remains the same. How to find IP address largely depend upon the device you are using.

Here are several ways to check your IP address:

The Ubuntu Interface: Check on your screens and you will find a network icon in your notification area, right click on it. It is generally two vertical arrows pointing up and down, normally seen near date and time.

However, if your network icon is not visible in the notification area, you can manually add it right clicking notification bar and selecting the “Add to Panel” option and then choosing “Network Manager”. Once added, click the drop down menu, you will see “Connect Information”, click on it, and here it is, your 10 digit IP address.

Enter a terminal command: First of all, open “Terminal”, this is generally visible in the list of applications or search for Terminal. Now enter the command “ip address show”. A window will open, search for “inet”, each device’s IP addr will be listed after “inet”. If you do not know which device you want to check, simply search “ip addr show eth0”.

Unixish for Unix and some Linux build: This is a terminal command in Unix. Again, open a new Terminal’. Once opened, enter this command, /sbin/ifconfig. It will open a window where there are host of network information. In case you get an error in Linux opening IP address, enter a terminal command in recent Linux build.

IP address for each device can then be found by writing command “inet adr”. If you want to avoid too much information, then write a dedicated command sbin/ifconfig | grep ‘inet addr’, this will only display the IP address.

Another terminal command: Open the terminal. Once opened, enter the command hostname -I (I here means a capital I). If you just have a single IP address, without any other text, then write the command, % hostname –I, 192.168.1.20.

Please Leave a Reply

SUBSCRIBE VIA EMAIL

Join More Than Million Members!