IP address lookup

IP address lookup

Look up IPv4/IPv6 location and ISP details, address types and CIDR ranges

Computed on this site’s server

Enter an IP or CIDR prefix. This site's server reads its local ip2region database without forwarding the address to a third party. Every address also has a shareable page of its own at /ip/140.210.40.0/.

Enter an address to inspect.

Your recent lookups

No lookups yet. This list is stored only in your browser.

Recently looked up

IP address Location ISP Looked up
119.91.234.227 中国 · 河北省 · 沧州市 中国电信
2001:4860:4860::8888 United States · Florida · Miami Google LLC
203.0.123.142 Australia · New South Wales No record
222.91.205.25 中国 · 陕西省 · 咸阳市 电信
120.36.251.252 中国 · 福建省 · 厦门市 电信
8.8.8.8 United States · California Google LLC

Public addresses only, last 50 kept, with nothing identifying who looked them up.

Example

Input

192.168.1.42/24

Example result

Network: 192.168.1.0
Mask: 255.255.255.0
Broadcast: 192.168.1.255
Hosts: 192.168.1.1 – 192.168.1.254
Total: 256

256 counts all addresses; the usual host range contains 254.

Technical details & limits

Location lookup reads local XDB files and does not forward the address to a third party. ip2region's bundled data is updated irregularly, so city and ISP fields may be missing or stale and should be treated as network-allocation clues. CIDR prefixes count network bits: 32 for IPv4 and 128 for IPv6. Neither classification nor location proves that a target is active or reachable.

About this tool

Look up an IPv4 or IPv6 address's country or region, province, city and ISP, alongside normalized forms, numeric representations and address classifications. Prefix input also adds network ranges, counts and applicable masks. Input is sent to this site by POST and location data comes from its bundled ip2region database.

Use cases

  • Decide whether an address is private, and which CIDR block it lives in.
  • Compute subnet mask / broadcast address for firewall or ops config.
  • Convert an IPv4 address to a 32-bit integer to store in a database.
  • See how many addresses an IPv6 prefix contains.

Input & output

Input
An IPv4 or IPv6 address, optionally with a /prefix, sent to this site by POST.
Output
Country or region, province, city, ISP, address classification and numeric forms. CIDR input adds the network, broadcast, host range and total addresses.

Notes

Input is sent to this site's server by POST. Location lookup reads the bundled ip2region database and is not forwarded to a third party. Offline data may be missing or stale and is not a device's precise live position. Lookups of public addresses join this site's shared “recent lookups” list (the last 50 addresses, with nothing identifying who looked them up); private and reserved addresses are never recorded.

FAQ

Where does the IP location data come from?
It comes from the bundled ip2region XDB database. The lookup runs locally on this site's server and does not forward the supplied address to a third-party service.
What is the difference between “usable hosts” and “total addresses” in CIDR output?
An IPv4 /24 normally has 256 total addresses and 254 host addresses; /31 and /32 are special cases. IPv6 has no broadcast, but allocation still depends on network plans and reserved uses.
How is `127.0.0.1` classified?
loopback (127.0.0.0/8). It never leaves the host — it is the machine talking to itself.
What is `::`?
The IPv6 unspecified address (equivalent to 0.0.0.0). Commonly seen when a socket binds to “any local address”.
Does this show cities, ISPs or my public IP?
It can look up the supplied address's city and ISP when those fields exist in the offline database. It does not automatically read or insert your visitor IP, ping the target or probe ports.
Does the result show an IP's live location or online status?
No. Results come from offline network-allocation data, may lag changes and are not a device's precise location. The page does not ping or probe ports, so it cannot establish whether a target is online.

Related tools

IP address lookup · Look up IPv4/IPv6 location and ISP details, address types and CIDR ranges
IP address lookup — Tool illustration · dayeku.com