-
UdpClient
Currently i am creating udpClient by binding it to a specific local port.
Code:
udp = new UdpClient(LocalPort1);
I can receive data sent to LocalPort1 by
Code:
udp.Receive(ref remoteEndPoint)
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.
-
Re: UdpClient
You need to create two UdpClient objects, with different ports.