Check Internal and External IP Addresses

?
R
Bash

Quick guide to identify and verify both local network and public-facing IP addresses for troubleshooting connectivity issues and network configuration.

1alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
2alias localip="ipconfig getifaddr en0"

Created on 11/13/2020