Skip to content

Instantly share code, notes, and snippets.

View joshbrand's full-sized avatar
❄️
🐆

Josh Brand joshbrand

❄️
🐆
View GitHub Profile
@joshbrand
joshbrand / get-public-ip.md
Created April 27, 2023 19:13 — forked from rkalkani/get-public-ip.md
Get public IP address used by your machine to connect to the internet

Get Public IP

DNS

Google

dig o-o.myaddr.l.google.com txt @ns1.google.com +short
# OR
nslookup -type=txt o-o.myaddr.l.google.com ns1.google.com