Results 1 to 3 of 3

Thread: [RESOLVED] Broadcast to ALL instances over a LAN

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Resolved [RESOLVED] Broadcast to ALL instances over a LAN

    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?

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Broadcast to ALL instances over a LAN

    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.
    My usual boring signature: Nothing

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Re: Broadcast to ALL instances over a LAN

    Thanks, it seems to have worked =).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width