c# - Specifying what network interface an UDP multicast should go to in .NET -
The application of another machine running the same machine with a crossover cable on both computers with an active wireless card and a LAN port, We need to send UDP multicast to LAN Wire on another computer. Using C # sockets, Windows tries to route the message to the WLAN adapter every time.
Is there a way to specify a network interface on which to send UDP multicast?
You are probably looking for SocketOptionName.MulticastInterface
. There is an article on MSDN that can help you.
Otherwise, if you update your local routing table, then just use the exact entry from the multicast address and point to the correct interface. should do.
Comments
Post a Comment