All guides
Home Glossary IP address
Term

IP address

A unique numerical identifier assigned to each device connected to a computer network that uses the Internet Protocol for communication.

An IP address (Internet Protocol address) is a unique numerical identifier assigned to each device connected to a computer network that uses the Internet Protocol for communication. It acts as a logical address for a network node, allowing routers to forward data packets from a source to the correct destination. Without a valid IP address, a server, container, or client device remains isolated and cannot exchange traffic with the rest of the network.

How it works

Two main addressing standards operate across modern networks: IPv4 and IPv6. IPv4 uses a 32-bit addressing scheme written as four decimal octets separated by dots, yielding roughly 4.3 billion total addresses (4,294,967,296). Because public IPv4 space is exhausted, IPv6 was introduced with a 128-bit hexadecimal format—providing 2128 possible addresses and eliminating the need for address-sharing workarounds.

In hosting and infrastructure environments, IP addresses are classified by both scope and assignment method:

  • Public vs. private: Public IPs are globally routable across the internet and are required for any web server or endpoint that accepts external connections. Private IPs are reserved for internal local area networks (such as 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16) and rely on Network Address Translation (NAT) to reach the public internet.
  • Static vs. dynamic: Static IPs are manually bound to an interface and stay fixed across reboots, which is standard for production servers and DNS records. Dynamic IPs are leased automatically for a set period by a DHCP server.
  • Routing and filtering: Routers inspect destination headers to forward packets along the best path, while firewalls use IP rules and CIDR blocks to allow or drop traffic.

Example

On a Linux host, you can inspect the IPv4 and IPv6 addresses bound to active network interfaces using the ip utility:

$ ip -brief address show
lo               UNKNOWN        127.0.0.1/8 ::1/128
eth0             UP             203.0.113.42/24 2001:db8:85a3::8a2e:370:7334/64
eth1             UP             10.24.0.5/16

In this output, eth0 holds both a public IPv4 address and a public IPv6 address for external traffic, while eth1 uses a private address for internal communication between backend nodes.

What matters when choosing a server or hosting

  • Dedicated vs. shared IPv4: Shared hosting places multiple domains behind a single IPv4 address using Server Name Indication (SNI). Virtual private servers and dedicated machines typically include at least one dedicated public IPv4 address, which gives you full port control and isolates your sender reputation for outbound email.
  • Floating or elastic IPs: Cloud providers offer reassignable IP addresses that can be remapped from one instance to another in seconds, enabling zero-downtime failover or blue-green deployments without waiting for DNS propagation.
  • Native dual-stack IPv6: Ensure your provider allocates a routed IPv6 subnet (commonly a /64) alongside IPv4 so your services remain reachable by mobile carriers and modern networks without translation overhead.
  • Reverse DNS (PTR records): If your server sends transactional mail, confirm that the host allows you to configure custom PTR records matching your sending domain.

Common mistakes

  • Hardcoding ephemeral IPs in configs: Pointing application config files directly at a cloud instance IP breaks connectivity when the instance is recreated; use internal DNS names or floating IPs instead.
  • Leaving management ports open to 0.0.0.0/0: Exposing SSH, RDP, or database ports to every IPv4 address invites automated brute-force traffic. Restrict access to specific trusted CIDR ranges or a VPN gateway.
  • Forgetting IPv6 firewall rules: Enabling dual-stack networking without configuring ip6tables or equivalent security group rules leaves IPv6 interfaces completely unfiltered even when IPv4 is locked down.

FAQ

What is the difference between a public IP and a private IP?

A public IP is globally unique and routable over the open internet, allowing external users to reach your server. A private IP only works within an internal network or VPC and cannot be routed directly from the public internet without NAT or a proxy.

Do I still need IPv4 if my server has IPv6?

Yes. While IPv6 adoption continues to grow, many corporate networks, legacy tools, and third-party APIs still operate exclusively over IPv4, making dual-stack setups the practical standard for public-facing servers.

When should I use a static IP instead of a dynamic IP?

Use a static IP whenever other systems need a consistent endpoint to reach your machine—such as web servers, mail servers, VPN gateways, and hosts referenced by DNS A or AAAA records.

All glossary terms

Glossary

Related terms

Full glossary

New guides every week.

A digest of the best pieces on servers, VPN and self-hosted software. No ads, no spam.

1 email a weekOne-click unsubscribeRU · EN
Only slipjar.app articles, nothing else.