If there's a webadress www.something.com and this
converts into an Ipadress when you access it.
How can I get that IPAdress, I tried GetHostByName
but it only gives me the ISP-hostname. I realized also that
when I do a Tracert to it it only goes so far as to the ISP not to the
actual IPAdress that I would get in a browser.
If anyone knows please help me ASAP
Stefan
> If there's a webadress www.something.com and this
> converts into an Ipadress when you access it.
>
> How can I get that IPAdress, I tried GetHostByName
> but it only gives me the ISP-hostname.
Use gethostbyaddr instead.
--
Cheers,
Ignacio
> Use gethostbyaddr instead.
For that, you need an IP address to begin with, which is what Stefan is
trying to get in the first place.
Gambit
> How can I get that IPAdress, I tried GetHostByName
> but it only gives me the ISP-hostname. I realized also
> that when I do a Tracert to it it only goes so far as to
> the ISP not to the actual IPAdress that I would get in
> a browser.
Then you probably need to talk to your ISP about that, because it sounds
like they are blocking access to that particular site if you can't even do a
simple tracert to it.
Alternatively, have a look at performing a DNS query manually. That may be
able to find you the real IP as expected.
Gambit
Right. Still asleep when I wrote that.
In response to the OP, I think that what he's seeing is correct. The
ISP is probably using a webserver that does virtual hosting via the
Host header (is that HTTP 1.0 or 1.1? I forget). The reverse lookup
will not show the website hostname but the ISP server hostname instead.
--
Cheers,
Ignacio