Outgoing UDP connection not working

I have a small app that uses UDP to make a connection to another host and it simply doesn’t return anything.

Locally the app works just fine, when deployed to a VPS though…

I’ve tried to disable the entire firewall but that did not work as well.

What are the chances of DO block outgoing UDP connections? (some times they can be a Ddos, so maybe there is a block?)

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I faced this same problem. The problem was in sending UDP packets from the server with the wrong source port. If the client is behind NAT, then destination port of packets to server and source port of packets from server should be the same.

You can check UDP packages with command: tcpdump udp

The problem was in the server code.


The only ports that DigitalOcean typically blocks on new accounts are mail ports to prevent spam since it’s so easy to setup an account and fund it. Once the account is verified, that can be lifted.

To my knowledge, no other ports are blocked, though to confirm that you’d need to submit a ticket to the support team.

What specifically is the application and what port are they trying to connect on?