19
of 21
Find a Website's IP Address
Like to know the IP address of a website? You can use the nslookup command or the ping command, but the former is probably faster.
First, let's use the nslookup command to find the IP address of lifewire.com:
Just execute nslookup lifewire.com and view the result. Make sure you don't confuse any private IP addresses that also show up in the nslookup results alongside the public IP address of lifewire.com, which is what IP address we're after.
Now let's try using the ping command to find it:
Execute ping lifewire.com and then look at the IP address between the brackets in the first line shown. Don't worry if the ping command "times out" during execution; all we needed here was the IP address.
You can use the same procedure with any website or any hostname on your local network.
No comments:
Post a Comment