How to determine the IP address of a website
You 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 18.104.22.168 as shown in the example output described below.
MS-DOS or Windows command line output example
Pinging computerhope.com [22.214.171.124] with 32 bytes of data: Reply from 126.96.36.199: bytes=32 time=30ms TTL=53 Reply from 188.8.131.52: bytes=32 time=30ms TTL=53 Request timed out. Reply from 184.108.40.206: bytes=32 time=31ms TTL=53 Ping statistics for 220.127.116.11: 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 computerhope.com (18.104.22.168) 56(84) bytes of data. 64 bytes from www.computerhope.com (22.214.171.124): icmp_seq=1 ttl=63 time=0.267 ms --- computerhope.com 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
Server: [name.server] Address: [nameserver.address] Non-authoritative answer: Name: wikipedia.org Addresses: 2620:0:860:ed1a::1 126.96.36.199
For more information, see the command documentation:
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.
- See the is it up utility page for an example of this service.