Broadcasting UDP datagrams

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?RWl0YW4=?=

    Broadcasting UDP datagrams

    Hello,

    I am writing a WinForm application that will broadcast a UDP datagram to
    multiple of embedded controllers. The controllers in return will send a
    response to the WinForm application.

    When I create the WinForm socket and assign the remote IP to the broadcast
    IP ( “192.168.1.25 5” or “255.255.255. 255” or “0.0.0.0”) and send the
    broadcast datagram I find out that the embedded controllers receive the
    datagram and response to the IP address that it came from (in my case
    “192.168.1.10 0”). However the WinForm application does not receive (or
    ignore it since the socket is open for the broadcast IP!?) the response from
    the embedded controllers.

    Any idea how can I solve that problem?

    Thanks
    EitanB

  • Peter Duniho

    #2
    Re: Broadcasting UDP datagrams

    Eitan wrote:
    [...] the embedded controllers receive the
    datagram and response to the IP address that it came from (in my case
    “192.168.1.100” ). However the WinForm application does not receive (or
    ignore it since the socket is open for the broadcast IP!?) the response from
    the embedded controllers.
    >
    Any idea how can I solve that problem?
    Use a different socket, not configured for broadcasting, to receive the
    responses.

    Pete

    Comment

    Working...