Jump to content
Not connected, Your IP:

How to make UDP usable if you get a time out

Recommended Posts

Heya, first post on the forum.
So, I always had issues while connecting with the UDP protocol. It always ended up with a:

curl: (28) Operation timed out after 20000 milliseconds with 0 out of 0 bytes received 

Unfortunately I didn't find many posts about how to solve the problem or what may be the cause. Except for one post that said it had to with the MTU (Maximum transmission unit).
I don't know the exact cause since I don't know a lot about networking. Maybe there is a better solution, if there is I'm more than happy to edit the post.

Keep in mind that it helped me and may not help you, but it's always worth a shot.
1. We want to find out what our current MTU is, most likely 1500 but it's always good to know what the default value is.
2. For this, we need to go into: Control Panel > Network and Internet > Network and Sharing Centre > Change adapter settings
   You're looking for the Tap-Windows Adapter (example included in hyperlink). You need the name for later which is my example, just "VPN"

3. Open cmd as an admin

4. Type netsh interface ipv4 set subinterface "YourInterfaceName" mtu=1200 store=persistent

5. And you're done! Try connecting to AirVPN with UDP again and tell me if it worked! You can try going higher, since I'm pretty sure it's better the higher it is.



This is only going to cover "NetworkManager" and "OpenVPN"

If you're using something else, find your equivalent

As a sidenote: I'm currently on Windows and can't confirm if it actually works, may update the post when I change back to Linux


1. Right-click the NetworkManager applet and choose Edit Connections

2. Double-click your VPN connection, in my case AirVPN_NL-Alblasserdam_Hydrus_TCP-433. Example

3. On the bottom above Save click Advanced...

4. Click on the checkbox that says Use custom tunnel Maximum Transmission Unit (MTU)

5. Enter 1200. Example

6. And you're done! Try connecting to AirVPN with UDP again and tell me if it worked! You can try going higher, since I'm pretty sure it's better the higher it is.




This is the first guide I ever wrote on the internet. If you have any suggestions, grammar mistakes that you found, feel free to let me know.

Fun Fact: My ping actually decreased from 60 to 48. I'm guessing because my ISP has a shitty routing system, not sure though.


- Scy

Share this post

Link to post



Thank you for making a contribution like this to the forum/community. I'm sure it'll be useful and to help ensure it's not lost, I will add it to my list of forum guides, if that's alright with you .


As for MTU, there's a great post and link on just that, which takes the guess work out of it, using the mssfix.

Moderators do not speak on behalf of AirVPN. Only the Official Staff account does. Please also do not run Tor Exit Servers behind AirVPN, thank you.
Did you make a guide or how-to for something? Then contact me to get it listed in my new user guide's Guides Section, so that the community can find it more easily.

Tired of Windows? Why Linux Is Better.

Share this post

Link to post

Sure, go ahead! Hopefully it's gonna help someone.


And thanks for the MTU thread, I'm gonna read it!


EDIT: Do you think you could link me to the thread so I can brag about it? :^)

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Security Check
    Play CAPTCHA Audio
    Refresh Image

  • Create New...