Re: UDP broadcasting/multicasting problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Sinu James" <abc@xxxxxxx> wrote in message
news:euapus$sn4$1@xxxxxxxxxxxxxxxxxxxxxxxx
Hello ,

What I want is a server on my LAN to broadcast its address to all machines
on the LAN.
Using UDP broadcasting or multicasting I was hoping to send the server
information across the LAN so that interested clients can establish
connections.

However, all broadcasts and multicast sample code dont seem to work on my
LAN (which I have tested successfully on other networks).
The router may not be configured for UDP broadcasts.

Is there any other alternative for the server to broadcast this info to
the clients without a central server mechanism?

Certain applications are able to do on the same LAN and they "seem" to
use UDP connections. :-(

I have a client/server application that does the following:
1) My server starts a thread that simply listens on a known UDP port for a
message from anywhere/anyone.
2) My client starts up a listener on a different known port.
3) My client broadcasts a message (including it's own ip and port#) to all
ip's (INADDR_BROADCAST) on the known port.
4) When the server gets the broadcast message, it then send a message back
to the client with it's own ip and the real port# it is suppose to
communicate on.
5) The client gets a message on it's listening port, and this message
contains the information about the server that this client application needs
to establish a real connection to the server.

Whew. Sounds like a mess, but it works nicely. All these messages easily
work within the LAN, but never leave through a router. Most routers are
configured to drop broadcast messages. The biggest problem is each app that
sets up a listener, causes an alert to popup on the screen, and the end-user
must "OK" the listener to not be blocked.

Also, we use another method of detecting the server (by enumerating all
services on all computers, and looking for our service name).

Good luck with your project. Hope this helps.
DanB


.



Relevant Pages

  • Network Admin-Myrtle Beach, SC
    ... SofTec I.T. has a terrific permanent opportunity with a premier client ... for a Senior Network Administrator. ... Configures and maintains the organizations LAN server and LAN ...
    (comp.dcom.sys.cisco)
  • Re: Cant browse the network over VPN?!
    ... running WINS on the LAN, WINS will have an entry for the Domain Master ... If the client has the correct WINS address, ... > server, and you attempt to connect to a computer using a PPTP/VPN client, ... > opening Network Knighthood. ...
    (microsoft.public.windows.server.networking)
  • XP VPN - Force nslookup to use DNS servers supplied by RRAS?
    ... client connecting to office LAN via Windows VPN connection, ... the client will attempt to connect to a server on the LAN by ... who frequently use the Windows VPN connection to ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Two elementary questions on LANs
    ... F15 and Windows and each have a wired and wireless LAN connection. ... router acts as the DHCP Server but doesn't have the capability to ... I say this because even if your router doesn't have configuration ... results when trying to adjust client settings to get a given outcome. ...
    (Fedora)
  • Re: Slow file-upload to share, 2003 server.
    ... I tried "Netsh int ip set chimney DISABLED" but it didn't seem to have any ... When downloading files to a client, or when using the server console to ... utilization of both CPU and LAN are moderate. ...
    (microsoft.public.windows.server.networking)