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.
Finding your IPs
What is my WAN IP?
curl https://ifconfig.meWhat is my LAN IP?
ip a
ip a ip address listip r
ip rip route listip r get
ip r get 1.1.1.1 ip route get 1.1.1.1netdiscover
A nice utility to display your subnet and it's devices. Latest release is from 2025-08-15
Install
apt update
apt install netdiscover -yReferences
netdiscover [1]