udp broadcast

From: Steen (Steen_at_discussions.microsoft.com)
Date: 10/06/04


Date: Wed, 6 Oct 2004 03:07:03 -0700

Hi,
I am trying to send an udp broadcast from my PPC.
The udp-server running on the host PC is not receiving these broadcasts.
Why not?

My PPC code is quite simple (but not working!):

int ServerUdpPort = 1234;
IPEndPoint remoteUdp = new IPEndPoint(IPAddress.Broadcast, ServerUdpPort);
UdpClient udpClient = new UdpClient();
udpClient.Connect(remoteUdp);
udpClient.Send(msgOut, msgOut.Length);
udpClient.Close();

If I run the code on the PC, or on the simulator, it works fine!