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 

How to get the IP address of a machine in a LAN?

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





PostPosted: Thu Jan 29, 2004 11:58 pm    Post subject: How to get the IP address of a machine in a LAN? Reply with quote



Dear all,

How to get the IP address of a machine in a LAN? Thanks.

Regards,
George
Back to top
Paul Nicholls
Guest





PostPosted: Fri Jan 30, 2004 1:10 am    Post subject: Re: How to get the IP address of a machine in a LAN? Reply with quote



Are you talking about the IP address of another computer in a LAN that isn't
your own?

"George Wei" <nobody (AT) yahoo (DOT) com> wrote

Quote:
Dear all,

How to get the IP address of a machine in a LAN? Thanks.

Regards,
George



Back to top
George Wei
Guest





PostPosted: Fri Jan 30, 2004 5:09 am    Post subject: Re: How to get the IP address of a machine in a LAN? Reply with quote



"Paul Nicholls" <paul-nicholls (AT) hotmail (DOT) com> wrote in
news:4019aefa$1 (AT) newsgroups (DOT) borland.com:

Quote:
Are you talking about the IP address of another computer in a LAN that
isn't your own?

Yes

Back to top
CheshireCat
Guest





PostPosted: Fri Jan 30, 2004 8:20 am    Post subject: Re: How to get the IP address of a machine in a LAN? Reply with quote

Quote:
Are you talking about the IP address of another computer in a LAN that
isn't your own?

Yes

Hi George,
Can you explain more what you're trying to do


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com)[/url].
Version: 6.0.572 / Virus Database: 362 - Release Date: 27/01/2004



Back to top
Juan Rosell
Guest





PostPosted: Fri Jan 30, 2004 8:58 am    Post subject: Re: How to get the IP address of a machine in a LAN? Reply with quote

Why don´t you try gethostbyname()?

regards,

Juan

"George Wei" <nobody (AT) yahoo (DOT) com> escribió en el mensaje
news:Xns94805B38666FCnobodyyahoocom (AT) 207 (DOT) 105.83.66...
Quote:
Dear all,

How to get the IP address of a machine in a LAN? Thanks.

Regards,
George



Back to top
George Wei
Guest





PostPosted: Fri Jan 30, 2004 11:46 pm    Post subject: Re: How to get the IP address of a machine in a LAN? Reply with quote

"CheshireCat" <clah (AT) blah (DOT) com> wrote in
news:401a13de (AT) newsgroups (DOT) borland.com:

Quote:
Can you explain more what you're trying to do

I want to know a machine, then use its IP address to connect to it. I
provide a GUI to let the user browse the network and choose a machine, it
returns the machine name. Then I have to cast the machine name to ip
address. gethostbyname needs a DNS name, not a machine name.

Regards,
George

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Sat Jan 31, 2004 2:09 am    Post subject: Re: How to get the IP address of a machine in a LAN? Reply with quote


"George Wei" <nobody (AT) yahoo (DOT) com> wrote


Quote:
I want to know a machine, then use its IP address to connect to it.
I provide a GUI to let the user browse the network and choose a
machine, it returns the machine name. Then I have to cast the
machine name to ip address. gethostbyname needs a DNS name,
not a machine name.

Did you actually try it yet, or are you just basing your statements on
documentation? gethostbyname() can return info for a computer name that is
on the same network. That is a "feature" of Microsoft's socket
implementation (aka WinSock).


Gambit



Back to top
George Wei
Guest





PostPosted: Mon Feb 02, 2004 6:38 am    Post subject: Re: Problem solved, gethostbyname() works ok Reply with quote

"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote in
news:401b0cc9$1 (AT) newsgroups (DOT) borland.com:

Quote:
Did you actually try it yet, or are you just basing your statements on
documentation? gethostbyname() can return info for a computer name
that is on the same network. That is a "feature" of Microsoft's
socket implementation (aka WinSock).

I tried gethostbyname() again and it solved my problem. Thanks for all
replies for this problem.

Regards,
George

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.