Get your current IP address from the terminal Nov 6, 2018 • bash Share this to: Facebook LinkedIn Email On a Mac (and probably FreeBSD & Linux too) this will give you your current external IP address. curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'