What to check if you cannot connect to a UDP server

For example, if you can connect to a local UDP server but cannot connect to a UDP server in the cloud, here is what you should check.

For example, if you can connect to a local UDP server but cannot connect to a UDP server in the cloud, here is what you should check.

Check command

echo -n "hello" | nc -4u udp.server.hostname 7100

"hello" is a harmless string that the UDP server cannot interpret, so if you send a message with this command and the UDP server outputs an error log, you will know that communication is possible.

If no logs are output

The bind address specified in the UDP server config may still be 127.0.0.1, try changing it to 0.0.0.0 and see if the problem improves.