| View previous topic :: View next topic |
| Author |
Message |
Stefan Sidholm Guest
|
Posted: Mon Dec 29, 2003 12:32 pm Post subject: Getting the Ip-adress |
|
|
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
|
|
| Back to top |
|
 |
Ignacio Vazquez Guest
|
Posted: Mon Dec 29, 2003 2:59 pm Post subject: Re: Getting the Ip-adress |
|
|
Stefan Sidholm wrote:
| Quote: | 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
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Dec 29, 2003 6:06 pm Post subject: Re: Getting the Ip-adress |
|
|
"Ignacio Vazquez" <ivazquezATorioncommunications.com> wrote
| Quote: | 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
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Dec 29, 2003 6:08 pm Post subject: Re: Getting the Ip-adress |
|
|
"Stefan Sidholm" <stefan.sidholm (AT) uc (DOT) se> wrote
| Quote: | 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
|
|
| Back to top |
|
 |
Ignacio Vazquez Guest
|
Posted: Mon Dec 29, 2003 6:11 pm Post subject: Re: Getting the Ip-adress |
|
|
Remy Lebeau (TeamB) wrote:
| Quote: | "Ignacio Vazquez" <ivazquezATorioncommunications.com> wrote in message
news:3ff0414d$1 (AT) newsgroups (DOT) 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.
|
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
|
|
| Back to top |
|
 |
|