IPAddress ip; IPAddress.TryParse("X.X.X.99", out ip); Socket receiver = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); receiver.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true); receiver.Bind(new IPEndPoint(ip, 9999)); byte rcvBuffer = new byte[1500]; int bytesRead = receiver.Receive(rcvBuffer);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)