Is there a tool somewhere to translate from an URL to the IP address? My PC
is in a LAN and I would like to find out the IP address (and port number) to a
web or ftp site.
There’s lots of tools.
Translating from a domain name to an IP address is something your computer
has to do each time you access the internet. It’s no surprise then that there
are several tools in Windows. I’ll show you the one I use all the time.
And of course there are even more tools out on the internet.
Let’s first clear up a couple of things though.
Become a Patron of Ask Leo! and go ad-free!
A “URL” is a full specification to a page. For example:
Is a URL. It has three parts:
The protocol specifier: http:
The domain name: ask-leo.com
The page location: /who_is_leo.html
The protocol specifies the port that will be used. http, for example, is
port 80. ftp uses ports 20 and 21. SMTP, the mail sending protocol, is usually
on port 25. You can actually find the full list of “official” ports here.
It’s only the domain name that has an IP address associated with it. So
that’s what you would be looking up.
My approach is to use the “ping” command in a Windows command prompt. For
Pinging ask-leo.com [188.8.131.52] with 32 bytes of data:
Reply from 184.108.40.206: bytes=32 time=65ms TTL=48
Reply from 220.127.116.11: bytes=32 time=67ms TTL=48
All you need is that first line, which tells you exactly what IP address the
domain “ask-leo.com” resolves to.
Obviously the ping command does more, but it’s easy and a habit I’ve gotten
into for figuring out IP addresses quickly.
If you want a lot more information about a domain, then there are
several tools out on the web that are worth looking into. One easy one is
samspade.org. A single field into
which you enter the domain name you’re interested in, press
WhoIs and you’ll get a report much like this:
As you can see it displays the same IP address as above, as well as the
registration and contact information about the domain.
There are a couple of catches with this type of lookup:
Not all registrars will show up this easily or quickly. Often you’ll be
redirected automatically or manually to another “WhoIs” lookup service that’s
hosted by the actual domain registrar.
Some folks go to great lengths to hide their domain ownership. Either by
registering with false information, or by using a privacy service, the
information presented here isn’t always exactly what you’re looking for. But
it’s a start.