Find your LAN/WAN/DHCP addresses

Most often, if you’d like to know what your router IP address is, you need to have access to its interface via a browser, or similar such gadgets. Here’s a few convenient one-liners which will give you that info more easily/conveniently… #get WAN address dig +short myip.opendns.com @resolver1.opendns.com #get DHCP server address(es)… cat /var/lib/dhcp/dhclient*leases \…