You public IP address is the address visible from outside your network. Most people don’t need to know their IP address except for very specific reasons, but fortunately, it’s extremely easy to figure out.
You might need your public, or external IP address, when you’re remoting into your computer when away from home, or when you’re sharing files from your FTP server, or connecting your network to a custom DNS service.
No matter the reason for needing to know your IP address, there are multiple ways to find it. You can use anything from a simple website to find your IP address to your computer’s command line utility or your router.
Find Your IP Address From the Command Line
Windows users can use a DNS request within Command Prompt to locate their public IP address. Just open Command Prompt and execute this command:
nslookup myip.opendns.com. resolver1.opendns.com
You’ll first see results from the DNS server but then another set of results at the bottom. Your IP address is listed below the line that says Name: myip.opendns.com.
If you get any kind of error when running this command, try doing just opendns.com. (remove the myip.), which should give you the IP address of opendns.com. Then run the command again using the myip. part in the front.
A similar command can be used to find your public IP address in PowerShell:
$tmp =Invoke-WebRequest -URI http://myip.dnsomatic.com/
After entering that command, enter $tmp.Content to see the result.
If you’re using Linux, try this command from a terminal window:
dig +short myip.opendns.com @resolver1.opendns.com
IP Address Finding Websites
The easiest way to find your external IP address is most definitely to use a website dedicated to doing just that. These websites are using their own tools to locate your IP address, and they’re just one click away from helping you.
Here’s a list of several websites that can find your public IP address:
- IP Chicken
- What Is My IP Address
- IP Location Finder
Tip: Some of these websites show other helpful information, too, such as your web browser, your local IP address, and even your physical location.
Locate the IP Address From Your Router or Modem
Your router and modem is what sits between your device and the internet, so it needs to know the IP address your ISP has assigned to your network. This means you can use your own device to find your public IP address.
Finding the external IP address from a modem or router is not as easy as using the methods above, but it’s definitely possible. The problem with this method is that you need to know how to log in to your router to see all the settings, which is something many people don’t normally do because they don’t know their password or the router’s IP address.
Most routers can be accessed via the http://192.168.1.1 URL, but others use a different private IP address. Once you know the correct address for your router, you need access to the router’s login information so that you can access the administrative console.
If you’ve made it this far, finding the IP address should be relatively easy. You can look in a section like Device Info, Management, Setup, WAN, etc. The IP address itself might be called WAN IP address, External Address, Public IP, or something of that sort.