Re: Howto find multiple servers using TCP



I can't think of another way.

But if the server program is your program, then I have a suggestion.
I have a server that alot of clients connect to, and I really didn't want to
have to input the server address in every client. So what I did was I used
a multicast socket to find the server. The server listens to traffic on a
particular multicast address, and when the clients want to find the server
application, they would send a message (where are you) using a multicast
socket with that particular address, the server would receive the message
and send a reply (Here I am) with its IP address. Now if there are more than
one server, the client would get multiple "Here I am" replies. This entire
process takes less than a second.

AliR.


"amccombs" <amccombs@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:129DBBB8-AD79-4588-91E0-0DF847EB11FB@xxxxxxxxxxxxxxxx
I have to search my subnet to look for servers that are listening on port
30715. I am using one thread of a derived class of CAsyncSocket. I am
using
CEvents with a 200 milisecond timeout, if there is no connection within
the
200 miliseconds, then I know there is no serer. However searching from
192.168.1.1 to 192.168.1.254 takes a long time. Is there a better way?



.



Relevant Pages

  • RE: Users Cant Access Documents on Server
    ... Thanks for using the SBS newsgroup. ... As well as we know, if a workstation would not access network shares, then ... Leave the Default Gateway of the internal NIC blank of the server box. ... Clients That Require SMB Signing ...
    (microsoft.public.windows.server.sbs)
  • Re: NOOB: Multicasting over Unicast WAN Connections
    ... >My desire is to place a live video stream at location A and multicast it ... >to clients in location A. No problem. ... >My goal is to unicast the live video feed from location A WMS server to ...
    (microsoft.public.windowsmedia.server)
  • Re: Users Cant Access Documents on Server
    ... my computer to the network on the server. ... Connection Wizard none of the computers were listed. ... The Mac clients can not communicate with the server box. ... > Error Messages When You Open or Copy Network Files on Windows XP SP1 ...
    (microsoft.public.windows.server.sbs)
  • Re: [SLE] SMTP authentication
    ... So eventhough my local SMTP server dials up to the internet with a certain username and password, that same username and password would not be used as authentication between my local SMTP server and the ISP's one, should it be used as a relay? ... either defer all outgoing mails until you connect to the internet, then flush out all the mails in the queue. ... Your local server would use an external program like fetchmail to poll the mailserver of your ISP, download the mails and feed them to Postfix. ... The test does NOT say "All clients must be in mynetworks, ...
    (SuSE)
  • RE: VPN Clients Not Registering in AD DNS
    ... via VPN, the DNS records of the VPN clients are unable to be registered. ... Windows 2003 server? ... please let me know whether the clients get the IP ...
    (microsoft.public.windows.server.sbs)