A public IP address is an Internet Protocol address used to communicate across the public internet. It is normally assigned to your internet connection, router, server, VPN gateway, or provider network. Websites can see the public address used by your connection, but that address does not reveal your exact home or live GPS position.
What Is a Public IP Address?
A public IP address is an address that can be used in global internet routing. When you visit a website, its server needs a source address for returning the requested page and other data. The public address is part of that communication.
At home, the address visible online often belongs to the router's internet connection rather than directly to one phone or laptop. At work, it may belong to a shared company gateway. On mobile data, it may belong to a carrier system shared by many subscribers. A VPN replaces the directly visible provider address with the VPN server's public address for supported traffic.
You can check the address visible to websites with the IP Lookup tool from ipdnslookup. The result can also provide approximate network and provider context.
What Does a Public IP Address Look Like?
Public addresses use either IPv4 or IPv6 format. The format tells you the protocol version, but the address range and routing context determine whether a particular value is public.
Public IPv4 example
An IPv4 address contains four decimal numbers separated by dots, such as 8.8.8.8. Each number ranges from 0 through 255. Public IPv4 space is limited, so providers often use address sharing and dynamic assignments.
Public IPv6 example
An IPv6 address uses hexadecimal groups separated by colons, such as 2001:4860:4860::8888. IPv6 has a much larger address space. A device may have one or more globally routable IPv6 addresses while still using IPv4 for some connections.
Not every correctly formatted address is public. Values such as 192.168.1.25, 127.0.0.1, and fe80::1 have private or special purposes. The IPv4 and IPv6 examples guide explains address formats in more detail.
How a Public IP Address Works
Internet communication is split into packets. Each packet carries addressing information so routers can move it toward the correct destination and return responses to the source.
- Your device sends a request: A browser asks for a page from a website.
- Your local network forwards it: A home or office router receives the request from the device's private address.
- The public source is applied: For common IPv4 home networks, the router translates the connection to the public address assigned by the provider.
- Internet routers move the packet: Networks exchange routing information and forward the request toward the website.
- The website sends a response: It returns data toward the visible public address.
- The router delivers it locally: Connection tracking helps the response reach the correct device inside the network.
This simplified example describes common IPv4 Network Address Translation. IPv6 can give devices globally routable addresses without the same address-sharing requirement, although firewalls still control unsolicited inbound traffic.
Who Assigns Public IP Addresses?
Public address space is coordinated in levels. The Internet Assigned Numbers Authority coordinates global number resources. Regional Internet Registries distribute address space within their service regions. Providers and organizations then assign or use smaller ranges for networks and customers.
The IANA number resources page explains this global coordination. A normal user does not choose an arbitrary public address. Using an address that was not assigned to the connection can create conflicts or fail because internet routers do not direct that address to the user.
The organization associated with an address can be an internet provider, mobile carrier, cloud service, hosting company, university, government network, business, or content-delivery platform. The name shown in a lookup is routing context and may differ from the brand that sold the service.
Public IP Address vs Private IP Address
Public and private addresses solve different routing problems:
- Public address: Used across the public internet and expected to be unique within its routing context.
- Private address: Used inside a local IPv4 network and not routed directly on the public internet.
- Public assignment: Usually comes from an internet provider, carrier, hosting service, or network operator.
- Private assignment: Usually comes from a home router, office DHCP server, or device administrator.
- Website visibility: A website normally sees the public connection address, not a private address such as
192.168.1.25. - Reuse: Private ranges can be reused by many unrelated networks. Public addresses require coordinated routing.
The private IPv4 ranges are 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. An address in one of these ranges is not your public IPv4 address.
A simple home-network example
A laptop uses 192.168.1.25 and a phone uses 192.168.1.26. Both connect through one router. The router has a provider-facing public address, for example 198.51.100.40. A website sees the public connection rather than either private device address.
How NAT Lets Devices Share One Public IPv4 Address
Network Address Translation, called NAT, allows several private devices to share one public IPv4 address. The router tracks each connection and uses port information to return traffic to the correct local device.
This sharing helps conserve IPv4 space and hides internal addressing from ordinary internet services. NAT is not a complete security system. A firewall, updated software, strong authentication, and safe router configuration are still important.
Because of NAT, an address does not identify one device or one person. A home, office, hotel, school, or public Wi-Fi network can place many users behind the same public address.
What Is Carrier-Grade NAT?
Carrier-grade NAT, or CGNAT, adds another layer of sharing inside the provider's network. The provider-side shared address allocation is documented in RFC 6598.
If your router's internet status shows an address in a shared or private-style range while an online lookup shows another address, CGNAT may be involved. Provider configurations vary, so ask the provider for confirmation.
CGNAT can prevent normal inbound port forwarding because the public address is not assigned directly to your router. Users who need to host a service may need a public address option, IPv6, or a secure outbound access method.
Dynamic and Static Public IP Addresses
A dynamic public IP can change. Providers assign it from a pool and may return the same address for a long time before changing it after a reconnect, lease event, network update, or equipment replacement.
A static public IP is intentionally kept stable for the connection. Businesses may use one for servers, remote access, allowlists, site-to-site VPNs, or services that require a predictable endpoint. Providers can charge extra or limit availability.
A static address does not improve internet speed by itself and does not automatically make a network secure. It can also make a service easier to find consistently, so exposed systems require careful firewall rules, updates, and authentication. The changing IP address guide explains dynamic changes and stability options.
How to Find Your Public IP Address
- Open the lookup: Visit the IP Lookup tool.
- Read the primary address: Note whether the result is IPv4 or IPv6.
- Review the provider: Check whether the organization matches the expected provider, mobile carrier, workplace, or VPN.
- Check location carefully: Treat country, region, city, coordinates, and map results as approximate network data.
- Compare network states: Check before and after enabling a VPN or switching between Wi-Fi and mobile data when needed.
The device settings may show a private address instead. Use the step-by-step IP address discovery guide when you need both public and private values on a particular device.
What Can a Public IP Address Reveal?
A public lookup can provide useful network context:
- The likely internet provider or routing organization
- An Autonomous System Number and matched network range
- An approximate country, region, city, or timezone
- Whether the address uses IPv4 or IPv6
It does not normally reveal a person's name, exact street address, phone number, passwords, private files, browsing history, or live GPS coordinates. Providers can keep private customer records connecting an address with an account at a particular time, but those records are not available through a normal public lookup.
Location accuracy varies. A marker can point to a provider gateway, network office, central location, or another city. Mobile networks, VPNs, business gateways, cloud systems, and privacy relays can make the visible area differ from the user's physical location.
Can Websites See Your Public IP Address?
Yes. A service receiving a direct internet request needs addressing information to return its response. Websites commonly record addresses in security and access logs, use them for rate limits, estimate a region, detect unusual activity, and troubleshoot service problems.
A VPN or proxy can change which public address a website sees, but the intermediary then handles that traffic path. Accounts, cookies, browser settings, and other signals can still connect activity with a user. Hiding one address is not complete anonymity.
Is a Public IP Address Safe to Share?
A public address is already visible to services you contact, but that does not mean it should be posted everywhere. Avoid publishing it with personal details or complete logs without a valid reason.
An address alone is not a password and normally cannot provide direct access to a protected device. Risk depends on whether the network exposes vulnerable services, weak router administration, outdated software, or unsafe port forwarding.
Use these basic protections:
- Keep routers, computers, phones, and server software updated.
- Use strong unique passwords and multi-factor authentication.
- Disable unused port forwarding and remote administration.
- Keep the firewall enabled and expose only necessary services.
- Review logs and account alerts using several signals, not location alone.
- Ask the provider for help during repeated attacks or service problems.
Public Does Not Always Mean Directly Reachable
An address can be globally routable in principle while firewalls block unsolicited inbound connections. Providers can also filter traffic, and CGNAT can prevent a customer from receiving direct inbound connections on the shared public address.
For IPv6, a device can have a globally routable address while a router or host firewall blocks new inbound sessions. Global addressing does not mean that every port is open.
Before hosting a service, confirm the actual assignment, provider policy, firewall rules, listening application, DNS records, authentication, and update plan. Never expose a router administration page merely to test reachability.
Common Public IP Address Misunderstandings
- One address does not equal one person: Families, offices, carriers, and public networks can share addresses.
- IP location is not GPS: It estimates a network area and can be wrong at city level.
- A public address can change: Dynamic assignments are common and normally harmless.
- A static address is not automatically safer: Stability and security are separate concerns.
- NAT is not the same as a firewall: Both may affect connections, but they serve different purposes.
- IPv6 public addressing does not remove firewall needs: Devices still require sensible access controls.
- An ASN organization may not be the retail ISP: Routing, transit, hosting, and customer relationships can differ.
Frequently Asked Questions
Does every device have a public IP address?
No. Devices commonly use private IPv4 addresses and share a public connection through a router. IPv6 devices can have globally routable addresses, but firewall policy still controls access.
Can two people have the same public IP?
Yes. People on the same router or behind a carrier-grade NAT gateway can share one public IPv4 address.
Is my router's WAN address always public?
No. It may be a private or shared address when the provider uses CGNAT. Compare it with a browser lookup and ask the provider when uncertain.
Can I change my public IP address?
It may change after a reconnect, but this is not guaranteed. Switching networks or using a VPN changes the address visible to websites. Ask the provider when you need a new assignment.
Can a public IP show my exact location?
No. It can estimate a network area, but it does not provide exact street or live GPS location through a normal lookup.
Do I need a static public IP?
Most users do not. It is useful when a service, secure remote connection, or allowlist requires a predictable endpoint.
Is a public IPv6 address dangerous?
Not by itself. Keep device and router firewalls enabled, install updates, and expose only services that are necessary and secured.
Why does a VPN show another public IP?
Traffic exits through the VPN server, so websites see that server's address instead of the direct provider address.
Use Public IP Information in Context
A public IP address is the globally routed address visible for an internet connection. It may represent a router, shared provider gateway, VPN server, website server, or another network endpoint. It identifies routing context, not a person by itself.
Use ipdnslookup to check the visible address, then interpret provider and location fields as network estimates. For focused routing details, use the IP to ASN Lookup. For country information, use the IP to Country Lookup. Combine address data with stronger evidence whenever identity, security, billing, or legal decisions matter.