udpclient

Broadcasting UDP message to all the available network cards

一笑奈何 提交于 2019-11-26 20:14:53
问题 I need to send a UDP message to specific IP and Port. Since there are 3 network cards, 10.1.x.x 10.2.x.x 10.4.x.x when i send a UDP message,i am receiving the message only in one network adapter...the rest of the ip's are not receiving. I want to check for the network adapter while sending the message. How can I do that? Currently I am using the following: IPEndPoint localEndPoint = new IPEndPoint(IPAddress.Parse(LocalIP), 0); IPEndPoint targetEndPoint = new IPEndPoint(TargetIP, iTargetPort);