Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting the Ip-adress

0 views
Skip to first unread message

Stefan Sidholm

unread,
Dec 29, 2003, 7:32:00 AM12/29/03
to
Hi,

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


Ignacio Vazquez

unread,
Dec 29, 2003, 9:59:10 AM12/29/03
to
Stefan Sidholm wrote:

> 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

Remy Lebeau (TeamB)

unread,
Dec 29, 2003, 1:06:36 PM12/29/03
to

"Ignacio Vazquez" <ivazquezATorioncommunications.com> wrote in message
news:3ff0414d$1...@newsgroups.borland.com...

> 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


Remy Lebeau (TeamB)

unread,
Dec 29, 2003, 1:08:20 PM12/29/03
to
"Stefan Sidholm" <stefan....@uc.se> wrote in message
news:3ff01e81$1...@newsgroups.borland.com...

> 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

Ignacio Vazquez

unread,
Dec 29, 2003, 1:11:52 PM12/29/03
to
Remy Lebeau (TeamB) wrote:

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

0 new messages