How to determine the IP address of a website

Updated: 12/20/2017 by Computer Hope

IP addressYou can determine the IP address by typing the domain of the address when using the ping command.


The above command indicates on the first line the IP address being used by Google, which in our example is as shown in the example output described below.

MS-DOS or Windows command line output example

Pinging [] with 32 bytes of data:

Reply from bytes=32 time=30ms TTL=53
Reply from bytes=32 time=30ms TTL=53
Request timed out.
Reply from bytes=32 time=31ms TTL=53

Ping statistics for
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 30ms, Maximum = 31ms, Average = 30ms

Why is the IP address long or not only numbers?

If you see an address that contains letters, numbers, and commas (e.g., 2607:f8b0:4005:805::200e) the website is using an IPv6 address and not an IPv4 address.

Linux output example

PING ( 56(84) bytes of data.
64 bytes from ( icmp_seq=1 ttl=63 time=0.267 ms

--- ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.267/0.267/0.267/0.000 ms


The nslookup command is used to query your nameserver for the IP address of a hostname. The command is available from the Windows command line, or a linux or macOS X terminal. Example:

Server: [name.server]
Address:  [nameserver.address]

Non-authoritative answer:
Addresses:  2620:0:860:ed1a::1

For more information, see the command documentation:

Online services

Online services exist which can help you determine the IP address of a website. Such services are particularly helpful if ICMP requests (pings) are being filtered somewhere between you and the site.

Additional information