How to do a UDP multicast across the local network in c#?

后端 未结 3 1626
庸人自扰
庸人自扰 2020-12-28 21:31

I am trying to get some simple UDP communication working on my local network.

All i want to do is do a multicast to all machines on the network

Here is my se

3条回答
  •  孤独总比滥情好
    2020-12-28 21:39

    Does your local network hardware support IGMP?

    It's possible that your switch is multicast aware, but if IGMP is disabled it won't notice if any attached hardware subscribes to a particular multicast group so it wouldn't forward those packets.

    To test this, temporarily connect two machines directly together with a cross-over cable. That should (AFAICR) always work.

    Also, it should be the server half of the code that has the TTL argument supplied to JoinMulticastGroup(), not the client half.

提交回复
热议问题