Report this

What is the reason for this report?

Outgoing UDP connection not working

Posted on May 11, 2017

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?)



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!

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.

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.

@Vanker

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?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.