UDPSendReceiveString problem

I have found the problem. The code works perfectly.

There was no DNS server set on the connection, so the link keeps breaking. Thanks all for the help.