PDA

Click to See Complete Forum and Search --> : [RESOLVED] Broadcast to ALL instances over a LAN


Slyke
Mar 16th, 2008, 12:36 PM
I was wondering if it's possible to have a server application broadcast over a LAN, and i'm not just talking about the broadcast address (255.255.255.255). I want to be able to detect the broadcast from another app that's listening without knowing the port that the server app is broadcasting from.

Is this possible without listening on every UDP port?

Shaggy Hiker
Mar 16th, 2008, 01:05 PM
I haven't tried it, but I found some example code that created a UDP server that listened on any port. I seem to remember that the way this is done is by setting the port to 0, but you would want to verify that.

Slyke
Mar 16th, 2008, 01:14 PM
Thanks, it seems to have worked =).