How to Find Your Public IP Address (2024)

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.

Table of Contents

    How to Find Your Public IP Address (1)

    No matter the reason for needing to know your IPaddress, there are multiple ways to find it. You can use anything from a simplewebsite to find your IP address to your computer’s command line utility or yourrouter.

    IP Address Finding Websites

    The easiest way to find your external IP addressis most definitely to use a website dedicated to doing just that. Thesewebsites are using their own tools to locate your IP address, and they’re justone click away from helping you.

    How to Find Your Public IP Address (2)

    Here’s a list of several websites that can findyour public IP address:

    Tip: Some of these websites show other helpful information,too, such as your web browser, your local IP address, and even your physicallocation.

    Find Your IP Address From the Command Line

    Windows users can use a DNS request withinCommand Prompt to locate their public IP address. Just open Command Prompt andexecute this command:

    nslookup myip.opendns.com. resolver1.opendns.com
    How to Find Your Public IP Address (3)

    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 yourpublic IP address in PowerShell:

    $tmp =Invoke-WebRequest -URI http://myip.dnsomatic.com/

    After entering that command, enter $tmp.Contentto see the result.

    If you’re using Linux, try this command from aterminal window:

    dig +short myip.opendns.com@resolver1.opendns.com
    How to Find Your Public IP Address (5)

    Locate the IP Address From Your Router or Modem

    Your router and modem is what sits between yourdevice and the internet, so it needs to know the IP address your ISP hasassigned to your network. This means you can use your own device to find yourpublic 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.

    How to Find Your Public IP Address (6)

    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 IPaddress 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 IPaddress, External Address, Public IP, or something of that sort.

    How to Stop Your IP Address From Changing

    Because of the way ISPs assign IP addresses, your public IP address will likely change at some point in the future. This means that the address you find using one of the methods above, will not be the same address you find a few weeks from now, or maybe even sooner.

    While you, as a customer of your ISP, can’t technically force your IP address to stay the same, you can implement what’s called a dynamic DNS service to essentially create that effect.

    A dynamic DNS service assigns a name to your IPaddress, while at the same time updating its record of what your IP address is.It does this each time the address changes, effectively giving you one hostname(like a website URL) that you can use to refer to your public IP address.

    Once you’ve assigned yourself a hostname, youcan access your network at any time through that name, which in turn isactually accessing your network through the public IP address. Again, you don’tneed to know your new IP address each time your ISP changes it because theservice does that for you. All you need is the hostname!

    Can You Change or Hide Your IP Address?

    How to Find Your Public IP Address (7)

    By default, your public IP address is visible bynearly anyone. Each website you visit can see it, your ISP knows what it is,and people snooping on your network from the street can figure it out. What’sthe best way to hide or mask your IP address?

    A VPN, or virtual private network, is by far the easiest and most effective way to keep prying eyes from seeing your public IP address. What a VPN does is create a tunnel from your network to the VPN service, thereby preventing your ISP or anyone on your local network from spying on you.

    What this does is force the website you’re on to see the VPN’s address instead of your own, which basically hides your identity on the internet. That is, so long as the VPN service doesn’t reveal your IP address to anyone, which is why you wanted to pick a trusted VPN provider.

    There are lots of VPNs to choose from, both free and paid. Some have more or better features and privacy than others, so be sure to take your time researching the best VPN services before choosing one to hide your IP address. If you need to, make sure to check that the VPN connection is actually encrypted before moving forward with a subscription.

    See our list of VPN apps you can use to protect your privacy while on a desktop or mobile device.

    How to Find Your Public IP Address (2024)

    FAQs

    How to Find Your Public IP Address? ›

    Find your IP address on an Android device

    On Android, tap Settings, and then navigate to Connections (for a Samsung) or Network & internet (for a Pixel). (For this portion, we're using as reference a Samsung S22 Plus running Android 13 and a Pixel 6 using Android 13; other phones may differ.)

    How do I get my public IP address? ›

    Find your IP address
    1. Open a web browser (such as Chrome, Firefox, or any browser of your choice).
    2. Visit one of the following websites: whatsmyip.org. whatismyip.com.
    3. Either of these web pages will detect and display the public IP address of your network.

    How do I find my IP address? ›

    Find your IP address on an Android device

    On Android, tap Settings, and then navigate to Connections (for a Samsung) or Network & internet (for a Pixel). (For this portion, we're using as reference a Samsung S22 Plus running Android 13 and a Pixel 6 using Android 13; other phones may differ.)

    How do I find my public IP and private IP? ›

    Private IP can be known by entering “ipconfig” on the command prompt. Public IP can be known by searching “what is my ip” on Google.

    What is the public IP address of my device? ›

    Here's how to find the IP address on the Android phone:

    Go to your phone's settings. Select “About device.” Tap on “Status.” Here you can find information about your device, including the IP address.

    Do I have a public IP address? ›

    To check if your IP address is public, you can use myip.com (or any similar service). You will be shown the IP address that was used for accessing the site, and if it matches the IP address that your Internet service provider assigned you, then you have a public IP address.

    Can anyone find your public IP? ›

    Yes, tracing your IP address is legal as long as it's not used for criminal activities. The websites you visit, the apps you use, and even your ISP collect your IP address along with other personal information. However, individual users can also easily trace your IP address.

    What does a public IP address look like? ›

    There are far more public IP addresses than private ones, and the public IP address ranges look like this: 1.0. 0.0 - 9.255. 255.255.

    Is 192.168 a public IP? ›

    192.168.

    Note that only a portion of the “172” and the “192” address ranges are designated for private use. The remaining addresses are considered “public,” and thus are routable on the global Internet.

    Does your phone have an IP address? ›

    Every device, including an iPhone, comes with its own private IP address, as well as a public IP address from the network router it's connected to. In this guide, we'll show you how to find your iPhone's IP address in less than 30 seconds.

    What is the Internet IP address? ›

    An Internet Protocol (IP) address is the unique identifying number assigned to every device connected to the internet. An IP address definition is a numeric label assigned to devices that use the internet to communicate.

    Does your IP address change? ›

    When a device is assigned a static IP address, the address does not change. Most devices use dynamic IP addresses, which are assigned by the network when they connect and change over time.

    Top Articles
    Latest Posts
    Article information

    Author: Pres. Carey Rath

    Last Updated:

    Views: 6061

    Rating: 4 / 5 (61 voted)

    Reviews: 92% of readers found this page helpful

    Author information

    Name: Pres. Carey Rath

    Birthday: 1997-03-06

    Address: 14955 Ledner Trail, East Rodrickfort, NE 85127-8369

    Phone: +18682428114917

    Job: National Technology Representative

    Hobby: Sand art, Drama, Web surfing, Cycling, Brazilian jiu-jitsu, Leather crafting, Creative writing

    Introduction: My name is Pres. Carey Rath, I am a faithful, funny, vast, joyous, lively, brave, glamorous person who loves writing and wants to share my knowledge and understanding with you.