In c# I am using the UdpClient.Receive function:
public void StartUdpListener(Object state) { try { udpServer = new UdpClient
There's nothing wrong with the way you have configured your UdpClient. Have you tried a different port number? Perhaps 1234 is already in use on your system by a different app.