Skip to content
IT glossary
BackendUpdated December 3, 2026

IP address

IP-адрес

A numeric address that computers and routers use to send packets to the right destination. It works on local networks as well as across the internet.

Also known as: IPv4, IPv6, подсеть

What an IP address identifies

An IP address is a network-layer address, usually assigned to a network interface rather than to a whole machine. A laptop can have one address on Wi-Fi and another on Ethernet. An interface can also have several addresses at once, including both IPv4 and IPv6 addresses. Joining a new network can change the address, so it is not a permanent device ID.

How packets get there

An IP packet carries source and destination addresses. The sender checks its routing table to decide whether it can send directly to the destination on a connected network or must hand the packet to a router. Each router checks the destination against its own routing table. If multiple routes match, the most specific one wins: a route for a particular subnet takes precedence over a default route.

IPv4 addresses are 32 bits long and written as four decimal numbers, such as 192.168.1.42. IPv6 addresses are 128 bits long and use colon-separated hexadecimal groups, as in 2001:db8::42. The :: can replace one run of all-zero groups.

Read a subnet in practice

A subnet is a block of addresses, not another name for an IP address. In 192.168.1.42/24, the /24 says that the first 24 bits are the network prefix. The address belongs to 192.168.1.0/24, as does 192.168.1.80. The address 192.168.2.80 does not. Compare prefix bits, not the number of matching dot-separated groups: a prefix like /26 ends partway through the last group.

Names, addresses, and ports

When a client connects using a domain name, it typically uses DNS to look up an IPv4 address from an A record or an IPv6 address from an AAAA record. The address gets packets to the network endpoint; the TCP or UDP port selects a service at that endpoint. For example, a development server listening on 127.0.0.1:8080 accepts local connections on port 8080. Another machine cannot connect to that listener directly because 127.0.0.1 is the IPv4 loopback address, which always refers to the machine making the connection.

A common interview question

Why might an API see the same IP for several users? With network address translation (NAT), several devices can share a single outward-facing IPv4 address. If the application sits behind a reverse proxy, its immediate peer may be the proxy, not the original client. A trusted proxy can pass along client address information, but the application should not accept a client-supplied forwarding header at face value. This is also why per-IP rate limits can affect unrelated users: they may share an apparent source address.