I wanted to send UdpPacket to a specific remote host (I already know the public IP and Port). I wanted to use C#\'s UdpClient class.
static int Main() {
Try specifying the endpoint when you create the UdpClient:
UdpClient
UdpClient client = new UdpClient(localEndpoint);
EDIT: Note that you can also specify just the port number:
UdpClient client = new UdpClient(localPort);
That may be somewhat simpler :)