Skip to main content
Back to Proxy Server
6 min readMay 13, 2026

Public vs Private IP Addresses: What Is the Difference?

Understand the difference between public and private IP addresses, including how NAT works and which IP address a proxy server presents to websites.

A public IP address can be routed across the internet, while a private IP address is used within private networks. In IPv4 networks, NAT connects those address spaces, while a proxy creates a separate connection whose public egress is visible to the destination.

What Is the Difference Between a Public and Private IP Address?

Public IPv4 addresses are globally coordinated and can be routed across the internet, whereas private addresses come from reserved ranges and remain within their local networks.

Separate networks can reuse the same private address, although overlapping ranges require an addressing plan when those networks are connected. On most home and office networks, a router translates private IPv4 traffic toward a public egress.

Public vs Private IP Addresses at a Glance

This comparison covers IPv4 because IPv6 uses different global and local address types.

CharacteristicPublic IPv4Private IPv4
ScopePublic internetPrivate network
RoutingRoutable when its prefix is announcedNot routed on the public internet
AssignmentCoordinated globallyAssigned locally from reserved ranges
ReuseCoordinated to prevent conflictsReused by separate private networks
Internet accessDirect when routing and filtering permitUsually through NAT or another intermediary
Destination visibilitySource address on a direct connectionRemains within the private network

The Three Private IPv4 Ranges

RFC 1918 reserves three specific address blocks for use within private IPv4 networks:

CharacteristicPublic IPv4Private IPv4
ScopePublic internetPrivate network
RoutingRoutable when its prefix is announcedNot routed on the public internet
AssignmentCoordinated globallyAssigned locally from reserved ranges
ReuseCoordinated to prevent conflictsReused by separate private networks
Internet accessDirect when routing and filtering permitUsually through NAT or another intermediary
Destination visibilitySource address on a direct connectionRemains within the private network

The slash prefix records the number of leading bits that define the block. Within the frequently misstated 172.16.0.0/12 block, only addresses from 172.16.0.0 through 172.31.255.255 are private.

An address outside RFC 1918 is not automatically public because the IANA registry also contains special-purpose space. The most relevant exception for proxy networks is Shared Address Space. RFC 6598 reserves 100.64.0.0/10 for use between customer equipment and provider translation infrastructure. It can appear as a router's WAN address, but it is not a fourth private IPv4 range.

How NAT and PAT Connect Private Networks to the Internet

Network address translation changes IP addressing information between networks, while Network Address Port Translation, commonly called PAT, also translates TCP or UDP ports, allowing many private devices to share one public address through distinct port mappings.

This HTTPS example uses reserved documentation addresses rather than live endpoints:

Connection stageSourceDestination
Device sends to router192.168.1.24:51514198.51.100.80:443
Router sends to internet203.0.113.7:62001198.51.100.80:443
Server returns response198.51.100.80:443203.0.113.7:62001
Router returns response to device198.51.100.80:443192.168.1.24:51514

The router maps the response at 203.0.113.7:62001 back to 192.168.1.24:51514, while other private devices receive different port mappings that let them share the public address. The destination receives 203.0.113.7 as the source rather than the client's private address.

Carrier-grade NAT adds another layer

Carrier-grade NAT adds translation inside the provider's network, where a customer's router may receive an address from 100.64.0.0/10 before multiple subscribers are translated through a public pool. This design is common on mobile networks and is also used by residential ISPs. Port forwarding on the customer's router cannot create a path through translation controlled by the provider.

NAT is not a firewall

NAT rewrites addressing information, whereas a firewall decides whether traffic is permitted. An unmatched inbound packet has no private destination in a typical PAT flow, but filtering remains a separate behavior. The IETF confirms that NAT does not provide security by itself, and port forwarding still requires an appropriate firewall policy.

How Public and Private IP Addresses Work with Proxies

A conventional external forward proxy accepts a client connection and opens a separate connection toward the destination. The destination receives the proxy's public egress as its source, while the private address assigned to the client remains unchanged. Proxy ingress and egress can use different addresses, particularly when one gateway provides access to a rotating pool.

A local proxy may receive the client's private address directly, whereas an internet proxy normally receives the public source produced by NAT or CGNAT. The destination receives the selected proxy egress, and authentication can associate the connection with a customer independently of its source.

An HTTP proxy can disclose client information through the standardized Forwarded header or the non-standard X-Forwarded-For header. Without that disclosure, the proxy's egress remains the network-layer source. For HTTPS, CONNECT can preserve TLS between the client and destination unless separate interception is configured.

Private IP address and private proxy mean different things

A private IP address belongs to a reserved internal range, whereas private proxy is a service term without a standardized definition. Providers may use it for restricted access or an egress reserved for one customer. Dedicated and shared proxies describe access rather than address scope, and the destination still receives a public proxy egress.

Where proxy IP addresses come from

Proxy categories often describe the network supplying the public egress address:

Proxy categoryPublic address source
DatacenterHosting or datacenter infrastructure
ISPISP address space operated on datacenter infrastructure
ResidentialResidential ISP connectivity
MobileMobile carrier connectivity, commonly behind CGNAT

Network origin does not determine rotation or customer access because either behavior depends on the service configuration.

Forward and reverse proxies expose different public endpoints

Unlike a forward proxy representing a client, a reverse proxy presents an inbound address for a service whose backend servers may use private addresses.

Public and Private Addressing in IPv6

IPv6 uses 128-bit addresses and does not use the private ranges defined by RFC 1918. Global unicast addresses most closely match the role of public IPv4, while local addressing follows different rules.

Every IPv6 interface uses a link-local address from fe80::/10 for functions such as neighbor discovery. Unique Local Addresses use fc00::/7, with locally generated prefixes using fd00::/8 for controlled internal routing rather than the global internet.

An interface can hold local and global IPv6 addresses simultaneously, including temporary global addresses for outbound connections. IPv6 does not require many-to-one NAT for address conservation, and a stateful firewall can restrict inbound traffic without translation. A dual-stack proxy can accept one address family and use the other for egress, as covered in our IPv4 and IPv6 proxy comparison.

Key takeaways

What to remember about public and private IP addresses

  • Public IPv4 addresses support internet routing, while RFC 1918 addresses remain within private networks.
  • PAT lets private devices share a public IPv4 address, but translation does not replace firewall policy.
  • A forward proxy leaves the client's local address in place and presents the proxy's public egress to the destination.
  • Proxy source categories do not determine whether an egress rotates or whether access to it is shared.
  • IPv6 provides both global and local scopes without requiring many-to-one translation for address conservation.

FAQ

Got questions?
We've got answers.

Quick answers to the most common questions about this topic.

A public IP address comes from globally coordinated space and can be routed across the internet when the network advertises it. A private IPv4 address is used inside a private network and is not routed on the public internet.

A device does not need to have both types of address. It can have several local addresses even though an upstream router supplies the public IPv4 egress. A publicly hosted server may have a public address on its own interface; an isolated device may have no public address at all.

Only part of the address space beginning with 172 is private. The private range starts at 172.16.0.0 and ends at 172.31.255.255; an address outside that interval is not private merely because its first number is 172.

It is Shared Address Space reserved for carrier-grade NAT, but it is not one of the three RFC 1918 private ranges. Providers use it specifically between customer equipment and their translation infrastructure.

The private address is not the network-layer source received by a normal internet destination after NAT or proxying. Software can still transmit an address as application data, and an HTTP proxy can add a forwarding header, but those disclosures are separate from IP-layer routing.

A proxy does not change the private address assigned to the device. It changes the path used by configured traffic and presents its egress address to the destination.

A residential proxy uses public egress associated with residential ISP connectivity, whereas a mobile proxy uses egress from a mobile carrier. The observed address can remain stable for a session or rotate, and upstream NAT may allow other connections to share it.

IPv6 addressing does not use the private ranges defined by RFC 1918. Unique Local Addresses support controlled internal routing, whereas link-local addresses operate on one link. An interface can use either type alongside globally routable IPv6 addresses.

Pricing

Get started with Proxidize

Pick the network that fits your workflow. Switch any time.

Lite

25 GB

$50

$2/GB

  • Real mobile carrier IPs
  • Unlimited concurrency
  • City & carrier targeting
  • HTTP & SOCKS5
  • Real-time dashboard & API
Buy Now

Standard

50 GB

$100

$2/GB

  • Real mobile carrier IPs
  • Unlimited concurrency
  • City & carrier targeting
  • HTTP & SOCKS5
  • Real-time dashboard & API
Buy Now

Plus

100 GB

Most popular
$200

$2/GB

  • Real mobile carrier IPs
  • Unlimited concurrency
  • City & carrier targeting
  • HTTP & SOCKS5
  • Real-time dashboard & API
Buy Now

Scale

200 GB

$400

$2/GB

  • Real mobile carrier IPs
  • Unlimited concurrency
  • City & carrier targeting
  • HTTP & SOCKS5
  • Real-time dashboard & API
Buy Now

Higher-volume plans

Lower price per GB as you scale
500 GB
$1,000$2/GB
Buy Now
1 TB
$2,000$2/GB
Buy Now
2 TB
$4,000$2/GB
Buy Now
5 TB
$10,000$2/GB
Buy Now
10 TB
$20,000$2/GB
Buy Now

Every plan includes

  • Real mobile carrier IPs
  • Unlimited access points
  • City, ASN & carrier targeting
  • HTTP & SOCKS5 support
  • Random or sticky IP modes
  • Username/password or IP whitelist auth
  • Proxy list generator & cURL examples
  • 99.5%+ success rate
  • Real-time dashboard & API access

Need more than 10 TB?

Custom rotation rules, priority support, higher volume limits, and pricing starting at $0.5/GB.

Talk to Sales

Want the full plan details? Read the Per GB docs.

Ready to run on
clean proxies?

Start free today, or talk to our team to build a plan around your scale.

KYC required to start