What Is My IP

Working on several servers on multiple locations you sometimes need to get the current IP of a WAN or some LAN connections.

Share
What Is My IP
Photo by Tim Mossholder / Unsplash

Finding your IPs

What is my WAN IP?

curl https://ifconfig.me

What is my LAN IP?

ip a

ip a 
ip address list

ip r

ip r
ip route list

ip r get

ip r get 1.1.1.1 
ip route get 1.1.1.1

netdiscover

A nice utility to display your subnet and it's devices. Latest release is from 2025-08-15

Install

apt update
apt install netdiscover -y


References

netdiscover [1]


  1. Netdiscover GitHub â†Šī¸Ž