Use new UdpClient(portNumber) to create a UDP client listening on that port, and UdpClient.Receive() to receive packets.