Posts
Jun 24, 2024
1 min read
How to Find Your Public IP Address
A collection of methods to retrieve your public IP address using command-line tools like nslookup, curl, and PowerShell, as well as web-based solutions.

Different methods of obtaining the public IP address of a computer.
Using nslookup
nslookup myip.opendns.com. resolver1.opendns.com
Using curl
curl ifconfig.me
Using PowerShell
(Invoke-WebRequest -Uri "http://ifconfig.me/ip").Content
Using a browser
Connected Reading
Related entries
Chosen from shared tags, categories, and nearby section context.