Skip to content

Instantly share code, notes, and snippets.

@csdy
Created April 18, 2024 16:21
Show Gist options
  • Save csdy/14b09b0268dd250b8ffa13ef33622d65 to your computer and use it in GitHub Desktop.
Save csdy/14b09b0268dd250b8ffa13ef33622d65 to your computer and use it in GitHub Desktop.
Get Public IP Address

Via Browser:
https://ifconfig.me/ip

Via cURL:
curl http://ifconfig.me/ip

Via PowerShell:
(Invoke-WebRequest -uri "http://ifconfig.me/ip").Content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment