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 

Searching network for server

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





PostPosted: Thu Aug 03, 2006 8:11 am    Post subject: Searching network for server Reply with quote



Hi!

I'm writing client software using indy components and I would like to
implement mechanism for searching network for server. Server is special
device connected directly to LAN and for communication is using port 2001.
Does anyone know how to do that?


Regards

Michal
Back to top
Francois Piette [ICS & Mi
Guest





PostPosted: Thu Aug 03, 2006 8:11 am    Post subject: Re: Searching network for server Reply with quote



Quote:
I'm writing client software and I would like to
implement mechanism for searching network for server.
Server is special device connected directly to LAN
and for communication is using port 2001.
Does anyone know how to do that?

If you have control over server software, it is better to make it either
advertize itself on the LAN by broadcasting a packet every minute or so, or
having the server listen on a UDP port to which client would broadcast their
request to know where the server is. The server reply to the broadcast with
informations about itself.

If server can't collaborate, it is not easy to find it whithout using brute
force: try to connect to the server port on every IP address in the LAN.
This could be quite slow when large address range is used !

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
francois.piette (AT) overbyte (DOT) be
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be
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.