Check your Local and Public IP address

Your Local IP address is:


Above is your local/private IP address(es) assigned to your internal hardware or virtual network card on your computer. Depending on your LAN configuration the above IP addresses may be static or dynamic.

In case you can’t find any address above, to check your internal IP address manually on Linux with ifconfig or ip command execute:

# ifconfig | grep -w inet | awk '{ print $2}'
OR
# ip a s | grep -w inet | awk '{ print $2}'

Your Public IP address


To check your public IP address manually on Linux with wget or curl command execute:

# echo $(wget -qO - https://api.ipify.org)
OR
# echo $(curl -s https://api.ipify.org)



Comments and Discussions
Linux Forum