leftovers:find_my_public_ip
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| leftovers:find_my_public_ip [2023-08-26 03:21] – created dave | leftovers:find_my_public_ip [2024-08-22 19:50] (current) – [PowerShell] dave | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Find My Public IP ====== | ====== Find My Public IP ====== | ||
| + | |||
| + | ===== Web Sites ===== | ||
| + | |||
| + | * https:// | ||
| + | * "Go to google and search for "my ip". | ||
| + | * http:// | ||
| + | * http:// | ||
| + | * https:// | ||
| + | |||
| + | ===== CLI ===== | ||
| CLI commands to find your public IP address. | CLI commands to find your public IP address. | ||
| - | ===== Curl ===== | + | ==== Curl ==== |
| < | < | ||
| > curl icanhazip.com | > curl icanhazip.com | ||
| Line 12: | Line 22: | ||
| </ | </ | ||
| - | ===== Dig ===== | + | ==== Dig ==== |
| < | < | ||
| + | # via OpenDNS | ||
| > dig +short myip.opendns.com @resolver1.opendns.com | > dig +short myip.opendns.com @resolver1.opendns.com | ||
| 11.22.33.44 | 11.22.33.44 | ||
| + | # via Google | ||
| > dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | > dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | ||
| " | " | ||
| + | |||
| + | # via Akamai | ||
| + | > dig @ns1-1.akamaitech.net ANY whoami.akamai.net +short | ||
| + | 11.22.33.44 | ||
| </ | </ | ||
| + | Install the [[Software: | ||
| - | ===== nslookup | + | |
| + | ==== nslookup ==== | ||
| < | < | ||
| # same as above, but nslookup for Windoze | # same as above, but nslookup for Windoze | ||
| Line 33: | Line 51: | ||
| </ | </ | ||
| - | ===== PowerShell | + | ==== PowerShell ==== |
| < | < | ||
| (Invoke-WebRequest ' | (Invoke-WebRequest ' | ||
| Line 42: | Line 60: | ||
| </ | </ | ||
| + | Invoke-WebRequest is also aliased as curl so this is another way to get the same result. | ||
| + | |||
| + | < | ||
| + | curl icanhazip.com | Select-Object -ExpandProperty Content | ||
| + | </ | ||
| + | |||
| + | You could sub http:// | ||
leftovers/find_my_public_ip.1693020090.txt.gz · Last modified: by dave
