Answered by : snippets
#private ip
hostname -I
or
ifconfig
or
ip addr show
#public ip
curl ifconfig.me
Source : | Last Update : Wed, 09 Dec 20
Answered by : yu-gan
ifconfig -a
Source : | Last Update : Mon, 20 Apr 20
Answered by : xenophobic-xenomorph-1d74y3pciitk
$ hostname -I
Source : https://www.linuxtrainingacademy.com/determine-public-ip-address-command-line-curl/ | Last Update : Sat, 29 Aug 20
Answered by : david-cao
ip addr
ip addr show eth0
ifconfig -a
ifconfig eth0
ip route
ip route show dev eth0
Source : https://www.howtouselinux.com/post/check-ip-address-in-linux | Last Update : Tue, 12 Apr 22
Answered by : david-cao
# The following commands allow you to get ip address in Linux. Open a terminal. Type any of the following command. Press Enter. The Ip address is next to inet.
ip address
ip address show eth0
ifconfig -a
ifconfig eth0
ip route
ip route show dev eth0
ip addr
ip addr show
ifconfig -a
ip route
Source : https://www.howtouselinux.com/post/check-ip-address-in-linux | Last Update : Sun, 27 Feb 22
Answered by : paul-cyril-lachica
# show IP address of current linux machine
ip addr show
Source : | Last Update : Fri, 04 Mar 22
Answered by : arrogant-anaconda-mxk2im4nhx79
curl ifconfig.me
Source : https://opensource.com/article/18/5/how-find-ip-address-linux | Last Update : Mon, 11 May 20