BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting the Ip-adress

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Stefan Sidholm
Guest





PostPosted: Mon Dec 29, 2003 12:32 pm    Post subject: Getting the Ip-adress Reply with quote



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





PostPosted: Mon Dec 29, 2003 2:59 pm    Post subject: Re: Getting the Ip-adress Reply with quote



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





PostPosted: Mon Dec 29, 2003 6:06 pm    Post subject: Re: Getting the Ip-adress Reply with quote




"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





PostPosted: Mon Dec 29, 2003 6:08 pm    Post subject: Re: Getting the Ip-adress Reply with quote

"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





PostPosted: Mon Dec 29, 2003 6:11 pm    Post subject: Re: Getting the Ip-adress Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.