What is an IP address?

An IP address is the number that lets packets find one network interface among billions. Every server you rent needs at least one public address before anyone can reach it.

What does an IP address actually identify?

It identifies a network interface, not a person or a building. When a packet leaves your laptop for a website, its header carries a source address and a destination address, and every router on the path reads the destination to decide the next hop. A physical server can hold several addresses on one network card, and one address can move between machines, so the link between an address and hardware is a configuration choice rather than a law of nature.

How are IPv4 addresses written?

IPv4 uses 32 bits, printed as four decimal numbers from 0 to 255 separated by dots, such as 203.0.113.42. That gives about 4.3 billion combinations, which ran out at the regional registries years ago. Because the supply is fixed, IPv4 addresses are now traded and leased, and hosting companies hand them out carefully. Slash notation describes a block: 203.0.113.0/24 is the 256 addresses whose first 24 bits match, and /32 means a single address.

How is IPv6 different?

IPv6 uses 128 bits, written as eight groups of four hexadecimal digits separated by colons, with runs of zero groups shortened to a double colon: 2001:db8:4a2::10. The space is so large that a single site normally receives a /64 or larger, which is 18 quintillion addresses for one network segment. IPv6 also drops the need for address translation, so every device can be reached directly if the firewall allows it. Our IPv6 explained and IPv6 compared with IPv4 articles go deeper into the protocol differences.

PropertyIPv4IPv6
Length32 bits128 bits
Written as198.51.100.72001:db8:10::7
Loopback127.0.0.1::1
Typical server allocationOne addressA whole prefix
Header checksumYesNo, left to upper layers

Which ranges are private and which are public?

Private ranges are reserved for internal networks and are never routed on the public internet: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 for IPv4, and fc00::/7 (unique local) for IPv6. Home routers and office networks use them behind address translation. A rented dedicated server, by contrast, sits directly on a public address, which is why a host firewall matters from the first minute. Documentation examples use 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 and 2001:db8::/32, which is why you see them in guides like this one.

How do I see the addresses on a Linux server?

The ip tool from iproute2 lists them. The brief form prints one line per interface, and the route query shows which address and gateway the kernel would use to reach a given destination.

ip -brief address show
ip -6 route get 2001:4860:4860::8888
ip route get 9.9.9.9 | awk '{print $7; exit}'

Public tools that echo your address back, such as curl -s4 https://ifconfig.co, confirm what the outside world sees. If the two disagree, something is translating your traffic on the way out.

What is reverse DNS and why does it matter?

Reverse DNS maps an address back to a name through a PTR record. Forward DNS answers "which address belongs to mail.example.com", reverse DNS answers "which name belongs to 203.0.113.42". Receiving mail servers check that the two agree before trusting a sender, and logs become easier to read when addresses resolve to meaningful names. On our machines you set the reverse DNS of the IPv4 address from the console; our IPv6 and reverse DNS on your server page explains the matching forward record you should publish first.

Which addresses come with a rented server here?

Every machine is delivered with one public IPv4 address and an IPv6 block, configured during the operating system install. Extra or failover IPv4 addresses are not part of our catalogue, so plan services around a single IPv4 front door. That works well in practice: a reverse proxy such as NGINX can host hundreds of websites on one address using the TLS server name, and IPv6 gives you as many distinct addresses as you like on the same box. Where a design needs an address that moves between machines, use DNS with a short time to live, or a proxy layer, instead of a floating IP.

Can an IP address reveal where a server is?

Roughly. Geolocation databases map address blocks to countries and cities using registry data and measurements, and they are usually right about the country of a data centre address. Our machines in Warsaw or Singapore will normally geolocate to Poland or Singapore. City-level guesses for hosting ranges are less reliable, and no database knows which rack a server sits in. If geolocation matters for your audience, pick the data centre closest to them rather than trying to adjust the database entry.

Related pages

IPv6 explained

How IPv6 addresses are written, shortened and divided, what prefixes like /64 mean, the address types you meet on a server and how to test reachability.

Read more

IPv6 and reverse DNS on your server

Configuring the IPv6 block that comes with every machine and setting the reverse DNS name of its IPv4 address from the console.

Read more

Configure IPv6

Bring up an address from your IPv6 block on Debian, Ubuntu or Enterprise Linux, add more addresses, test reachability and serve web traffic on both protocols.

Read more

How DNS works

From a typed name to an IP address: resolvers, root and TLD servers, authoritative zones, record types, TTLs and caching, with the commands to watch it happen.

Read more

Questions and answers

How many IPv4 addresses does a dedicated server include?

One public IPv4 address per machine, plus an IPv6 block. Additional or failover IPv4 addresses are not sold, so websites share the address through name-based virtual hosting.

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

A public address is routed on the internet and reachable from anywhere. Private ranges such as 10.0.0.0/8 or 192.168.0.0/16 only work inside a local network behind address translation.

What does /24 mean after an address?

It is the prefix length: the first 24 bits are fixed, so the block contains 256 IPv4 addresses. A /32 is one IPv4 address and a /64 is a standard IPv6 subnet.

Can I change the reverse DNS of my server address?

Yes. The reverse DNS of the IPv4 address is set from the server console. Publish the matching forward record first so the two names agree.

Does a server keep the same IP address for the whole rental?

Yes. The address assigned at delivery stays with the machine while it is rented, including across reinstalls and reboots.