Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : Re: Searching network for server

www.cryer.info
Managed Newsgroup Archive

Re: Searching network for server

Subject:Re: Searching network for server
Posted by:"voltage" (mich..@o2.pl)
Date:Thu, 3 Aug 2006 10:44:26

Użytkownik "Francois Piette [ICS & Midware]" <francois.piette@overbyte.be>
napisał w wiadomości news:44d19bc6$1@newsgroups.borland.com...
>> 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.

This is the biggest problem. I have no control over this server.
This device has communication implemented in firmware.

> 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 !

I was thinking about this solution but I'm not sure how to do that.
Which indy component or command I have to use to perform this LAN scanning?


Thx for your help ;)


> Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
> --
> francois.piette@overbyte.be
> Author of ICS (Internet Component Suite, freeware)
> Author of MidWare (Multi-tier framework, freeware)
> http://www.overbyte.be

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive