What does an IP address do?
It answers two questions for every packet: who sent it and where it should go. Routers across the internet read the destination address and forward the packet hop by hop toward the network that owns it. Names like shop.example.com are for people; DNS translates them into addresses before any connection starts (DNS resolver). An address belongs to an interface, not a device, so a server with several interfaces can have several addresses, and one address can carry many services on different ports.
IPv4 or IPv6?
| IPv4 | IPv6 | |
|---|---|---|
| Size | 32 bits, about 4.3 billion addresses | 128 bits, practically unlimited |
| Written as | 203.0.113.25 | 2001:db8:4a::25 |
| Typical allocation | Single addresses or small blocks | A /64 or larger per network |
| Header and NAT | NAT widely used to share addresses | Designed for end-to-end addressing |
IPv4 is still what nearly every client on the internet can reach, which is why a public IPv4 address remains the key requirement for a server. Each of our machines comes with one public IPv4 address, delivered on a point-to-point link explained in IPv4 on a /31. IPv6 is not part of the offer; every visitor can reach the server over IPv4.
What are public and private addresses?
Public addresses are unique on the internet and routed globally. Private ranges, defined in RFC 1918, are reused inside countless networks and never routed on the public internet:
10.0.0.0/8172.16.0.0/12192.168.0.0/16
Devices with private addresses reach the internet through NAT, which rewrites their source to a public address. On a dedicated server, private ranges are what you use for VMs and containers inside the box, with the host doing NAT; see Gateway server. Other special ranges: 127.0.0.0/8 is loopback, 100.64.0.0/10 is carrier-grade NAT, and 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 are reserved for documentation, which is why examples on this site use them.
What does the slash in 203.0.113.0/24 mean?
It is CIDR notation: the number after the slash says how many leading bits are the network part. A /24 leaves 8 bits for hosts, 256 addresses; a /30 leaves 4 addresses; a /31 leaves 2, which point-to-point links use for exactly two ends; a /32 is a single address. Firewall rules, routing tables and allow lists all use this notation. ipcalc 203.0.113.0/27 prints the range, mask and size of any prefix if you want to check your arithmetic.
How do I see my server's addresses?
ip -4 -br addr ip -4 route get 8.8.8.8 ss -4 -tlnp
The first lists IPv4 addresses per interface, the second shows which interface and source address are used to reach the internet, and the third lists which addresses and ports services listen on. A service bound to 0.0.0.0 listens on every address, including the public one; bound to 127.0.0.1, it is only reachable from the machine itself, which is the right choice for databases used only by local apps. The ip command and The ss command go deeper.
How can I test reachability?
ping checks that packets reach the address and come back; traceroute or mtr shows the path; nc -vz host port checks a specific TCP port. If ping works but a port does not, the cause is usually the host firewall or a service bound to loopback only. See The ping command and Run a traceroute.
Does the address reveal the location?
Roughly. Geolocation databases map address blocks to countries and cities, which is how sites guess where a visitor is. A server's address points at its data center region, which is one reason people choose a city near their audience: Amsterdam for European visitors, Singapore for Asian ones, and so on. For the effect of distance on speed, see Latency.
Machines, One Public IPv4 Each
| Server | Processor | Cores / threads | Memory | Storage | Network | Per month | Smallest order |
|---|---|---|---|---|---|---|---|
| E1 | Intel Xeon E3-1240 v3 | 4 / 8 | 16 GB DDR3 | 2x 240 GB SSD | 2x 1 Gbps | $30.52 | $91.56 (3 months) |
| S1 | Intel Xeon E-2276G | 6 / 12 | 64 GB DDR4 | 1x 1 TB NVMe | 2x 10 Gbps | $53.32 | $53.32 (1 month) |
| S2 | Intel Xeon E-2356G | 6 / 12 | 64 GB DDR4 | 1x 1 TB NVMe | 2x 10 Gbps | $58.39 | $58.39 (1 month) |
| S13 | AMD EPYC 4345P | 8 / 16 | 128 GB DDR5 | 2x 2 TB NVMe | 2x 25 Gbps | $237.92 | $237.92 (1 month) |
Keep Reading
IPv4 on a /31
Why each machine gets one public IPv4 on a /31 network, how the two addresses split between gateway and server, and how to configure it.
OpenStatic IP address
An IP address that stays the same, why servers need one, how a /31 point-to-point setup works and how to check the network config on Linux.
OpenThe ip command
Read addresses, links, routes and neighbors with ip, understand the /31 setup on our machines and make test changes without losing SSH.
OpenDNS resolver
The server that turns names into addresses for your machine, how recursive lookups work, and how to run a fast, private resolver on Linux.
OpenFAQ
Quick Answers
One public IPv4 address on a /31 link. IPv6 and additional addresses are not offered.
Public addresses are unique and routed on the internet. Private ranges like 10.0.0.0/8 are used inside networks and reach the internet through NAT.
The first 24 bits are the network part, leaving 8 bits, or 256 addresses, for hosts.
Run ip -4 -br addr for interface addresses, or curl a service such as ifconfig.co to see the public address.
That block, along with 192.0.2.0/24 and 198.51.100.0/24, is reserved for examples and never used on real networks.