×

This article covers different methods to quickly find the IP address of your #Linux Mint system. 

The simplest way to check the ip address of linux Mint, when using the bash shell is typing the command ifconfig. 

On typing the ifconfig you will not only be provided with the ip address, but also the mac address, subnet mask and other information. 


The following commands will get you the private IP address of your interfaces:

1. ifconfig -a.

2. ip addr (ip a).

3. hostname -I | awk '{print $1}'.

4. ip route get 1.2.

5. nmcli -p device show.


What is the #ipconfig command for Linux?

ifconfig(interface configuration) command is used to configure the kernel-resident network interfaces. It is used at the boot time to set up the interfaces as necessary. 

After that, it is usually used when needed during debugging or when you need system tuning.



This article will guide you on the different methods to find the private IP address in CentOS 8.


Different ways to display IP addresses in Centos:

1. Using ifconfig command. The ifconfig command is the most commonly used command for displaying and modifying IP addresses on the system.

2. Using ip command.

3. Using the hostname command.

4. using nmcli command.

5. Using ip route show command.


To configure a static IP address on CentOS 7 / RHEL 7:

1. Create a file named /etc/sysconfig/network-scripts/ifcfg-eth0 as follows:

2. DEVICE=eth0.

3. BOOTPROTO=none.

4. ONBOOT=yes.

5. PREFIX=24.

6. IPADDR=192.168.x.xxx.

7. Restart network service: systemctl restart network.


Commands will get you the private IP address of your interfaces:

i. ifconfig -a.

ii. ip addr (ip a)

iii. hostname -I | awk '{print $1}'

iv. (Fedora) Wifi-Settings→ click the setting icon next to the Wifi name that you are connected to → Ipv4 and Ipv6 both can be seen.

v. nmcli -p device show.



This article will guide you on the different methods through which you can easily figure out the private IP #address of your Debian 10 system.

The network statistics ( netstat ) command is a networking tool used for troubleshooting and configuration, that can also serve as a monitoring tool for connections over the network. Both incoming and outgoing connections, routing tables, port listening, and usage statistics are common uses for this #command.

To find out the #IP address of #Linux system, you need to use the command called ifconfig on #Unix and the ip command or hostname command on Linux. 


To get you the private IP address of your interfaces:

i. ifconfig -a.

ii. ip addr (ip a).

iii. hostname -I | awk '{print $1}'.

iv. ip route get 1.2.

v. (Fedora) Wifi-Settings - click the setting icon next to the Wifi name that you are connected to - Ipv4 and Ipv6 both can be seen.

vi. nmcli -p device show.



This guide will help you to Find Your Public IP address in #Ubuntu 20.04 LTS. 

ipconfig stands for Internet Protocol Configuration, while ifconfig stands for Interface Configuration.

The #ifconfig command is supported by Unix-based operating systems.

The ipconfig command displays all the currently connected network interfaces whether they are active or not.

The presence of a #public IP #address on your router or computer will allow you to organize your own server (VPN, FTP, WEB, etc.), remote access to your computer, video surveillance cameras, and access them from anywhere in the global network.


To Find Local / Public IP Address in #Ubuntu 20.04:

1. Open Settings and navigate to Network in left pane.

2. Click on the gear icon under connected wired network.

3. In the pop-up it shows the detailed information including your IP address.


To find my IP address and port number in Linux:

i. All you have to do is type “netstat -a” on Command Prompt and hit the Enter button. 

ii. This will populate a list of your active TCP connections. 

iii. The port numbers will be shown after the IP address and the two are separated by a colon.




More Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on IbmiMedia.com

Also for Tech related tips, Visit forum.outsourcepath.com or General Technical tips on www.outsourcepath.com