How do I locate my public IP Adress?

This article explains how you can locate your public IP address.

  1. Using a search engine: Simply type "what is my IP" into a search engine like Google, Bing, or DuckDuckGo. The search engine will display your public IP address at the top of the search results.

  2. Using command-line tools:

    • Windows: Open Command Prompt and type nslookup myip.opendns.com resolver1.opendns.com. This command queries OpenDNS for your public IP address.
    • Mac/Linux: Open Terminal and type curl ifconfig.me or curl icanhazip.com. These commands fetch your IP address from respective websites.
  3. Using websites: There are websites dedicated to showing your public IP address. You can visit sites like https://www.whatismyip.com/, https://www.whatismyip.org/, or https://www.whatismyipaddress.com/. These websites will display your IP address as soon as you load the page.

  4. Router's web interface: If you have access to your router's web interface, it often displays your public IP address on the status or configuration page.

  5. Network settings: On some devices (like smartphones or computers), you can find your public IP address in the network settings. Look for details like "IP Address," which typically shows your private IP by default; to find the public IP, you may need to look under advanced settings or additional details.

Each of these methods should provide you with your public IP address, which is the IP address assigned to your network from your Internet Service Provider (ISP).

 

Note: if you are requesting your IP address to be whitelisted while traveling in a restricted area, you must provide your public IP address and not your private IP address. Private IP address ranges are reserved for internal use within private networks and are not routable on the public internet. These ranges are defined by the Internet Assigned Numbers Authority (IANA) in RFC 1918. The private IP address ranges are:

  1. 10.0.0.0 to 10.255.255.255

    • Subnet mask: 255.0.0.0 (Class A)
  2. 172.16.0.0 to 172.31.255.255

    • Subnet mask: 255.240.0.0 (Class B)
  3. 192.168.0.0 to 192.168.255.255

    • Subnet mask: 255.255.0.0 (Class C)

These ranges are typically used for internal network communication, and devices within a private network use Network Address Translation (NAT) to communicate with devices on the internet.