Specifying what network interface an UDP multicast should go to in .NET

后端 未结 4 1083
孤独总比滥情好
孤独总比滥情好 2020-12-28 20:26

On a computer with both an active Wireless Card and a LAN-Port with a crossover cable hooked up to another machine running the same application, we need to send a UDP multic

4条回答
  •  轮回少年
    2020-12-28 20:41

    You are probably looking for SocketOptionName.MulticastInterface. Here's an article on MSDN that might help you.

    Other then that if you update your local routing table to have an exact entry matching the multicast address and pointing to the right interface it should just work.

提交回复
热议问题