What can a stranger learn from your IP address?

What can a stranger learn from your IP address?

Every time you open a page, buy something in a shop, or write on a forum, the other end of the connection sees your public IP address. The obvious question follows: can a stranger, or the owner of the site, see your home address and identify you personally?

Does an IP address identify a person or a specific device?

Short answer: no. An IP address is not a personal identity code and not a device serial number.

On a home Wi-Fi network, the laptop, phone, tablet and television usually each have their own private address. Facing the internet, those devices share one public address under IPv4. The home router does this with network address translation (NAT). A website sees the router’s internet-side address, not which person or which device sent the request. The post on which device’s address this site shows goes into that in more detail.

The rule has exceptions. Mobile networks and some home subscriptions use the operator’s shared NAT, so one public address can belong to several customers at once. With IPv6, a household often gets its own prefix and devices can have their own addresses. Even then, the address does not contain a person’s name.

If you are logged in to the same site, that site knows you from the account. The link comes from the account, not from the address itself.

What a public IP address actually reveals

A public address tells a network service something about where the connection comes from. The details come from the address registry and from geolocation databases, not from inside the address.

  • The internet provider. The registry usually shows which operator’s network the address is in, such as Telia, Elisa, Tele2 or another network. A reseller or shared NAT can blur the name.
  • A rough region. A database often suggests a city or county, such as Tallinn or Tartu. That is an estimate. On mobile and shared NAT the city is often wrong, and a street never comes from it.
  • A connection type, when a database knows it. Sometimes an address is listed as mobile, ordinary fixed broadband, hosting, or a known VPN exit. Fibre, a café’s public Wi-Fi and a particular device cannot be reliably told apart from the address alone.

What the IP address itself does not contain

In films, an address is enough to find someone’s house in seconds and open their computer. The address itself does not contain:

  • your name, personal identity code or contact details;
  • a street, house number or apartment;
  • the files, passwords or browsing history on your computer.

Who ties the address to a person? The internet provider keeps that link: which subscription held the address at a given time. A random website or a private individual does not see that registry. Disclosure follows a legal basis, such as an official request or a court order, not a request from anyone who asks.

Is knowing the address dangerous?

The address does not tell a stranger your name. On an unprotected network, a public address can still be a target for automated scans. Someone who saw the address does not thereby get into your computer.

Port scanning

Automated scanners walk public addresses looking for open ports. Common examples are 22 (remote login), 80 and 443 (the web) and 3389 (remote desktop). If an unpatched security camera, a home server or a router with administration open to the internet sits behind the public address, it may be probed.

A flood of traffic

Someone who knows the address can send a large volume of requests toward it. That can make a home connection or router unusable for a while. The attack does not reach your files.

How to protect the connection

Protection has two layers: the router at home, and a firewall on the device you take onto other networks.

The router firewall

Modern home routers usually have a stateful firewall (SPI, stateful packet inspection). It is usually on in the factory settings and blocks unsolicited connections from the internet. If you have not deliberately forwarded ports, a scanner does not see the computer behind the router.

It is worth checking this in the router’s admin page. UPnP can open ports without a separate switch you remember turning on. IPv6 does not get the same cover from IPv4 NAT, so the router firewall needs to cover IPv6 as well.

The device firewall and security software

The router does not help when a laptop is on café or airport Wi-Fi, or when malware is already on the machine and opens a connection outward by itself.

When you are away from home, a laptop should keep antivirus software with its own firewall and packet inspection, alongside the operating system’s firewall. It looks for malware, may notice a port scan and can cut a suspicious incoming connection. On café or airport Wi-Fi that work falls to the device, because the home router is not there.

Back to the blog