Currently i am creating udpClient by binding it to a specific local port.
I can receive data sent to LocalPort1 byCode:udp = new UdpClient(LocalPort1);
How can i choose to receive data from either LocalPort1 or LocalPort2, if both ports contains the data i want?? Btw, i only want to choose to receive data from LocalPort1 or LocalPort2, not the rest of the port. Both LocalPort1 and LocalPort2 are on the same IP.Code:udp.Receive(ref remoteEndPoint)


Reply With Quote

Bookmarks