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 

Get IP from computer name!

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





PostPosted: Wed Aug 30, 2006 2:00 pm    Post subject: Get IP from computer name! Reply with quote



Hi anybody:
How can i get IP Address from computer name?
Thanks.
Back to top
Mervin Pearce [SACS]
Guest





PostPosted: Wed Aug 30, 2006 9:12 pm    Post subject: Re: Get IP from computer name! Reply with quote



nslookup computername <ENTER>

;-)


"Akee" <cruz_hei (AT) yahoo (DOT) com> wrote in message
news:44f553a0$1 (AT) newsgroups (DOT) borland.com...
Quote:

Hi anybody:
How can i get IP Address from computer name?
Thanks.
Back to top
Francois PIETTE [ICS - Mi
Guest





PostPosted: Wed Aug 30, 2006 9:33 pm    Post subject: Re: Get IP from computer name! Reply with quote



Quote:
How can i get IP Address from computer name?

Using ICS (Download full source code from http://www.overbyte.be):
1) Synchronous name résolution:
WSocket_Synchronized_ResolveHost('www.borland.com').s_addr
2) Asynchronous name resulution
WSocket.DnsLookup('www.borland.com');
Event OnDnsLookupDone event triggered when resolution is done.
Result of resolution is in DnsResult property.
See DnsLook.dpr demo.
2) Asynchronous name resolution querying a specific DNS server:
Use TDnsQuery component.
See NsLook.dpr demo.

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
francois.piette (AT) overbyte (DOT) be
The author for the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Aug 30, 2006 10:19 pm    Post subject: Re: Get IP from computer name! Reply with quote

"Akee" <cruz_hei (AT) yahoo (DOT) com> wrote in message
news:44f553a0$1 (AT) newsgroups (DOT) borland.com...

Quote:
How can i get IP Address from computer name?

The WinSock gethostbyname() function.


Gambit
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.