# OpenVPN for Android error: write UDP \[\]: Operation not permitted (fd=4,code=1)

**URL:** <https://forums.jeff.pro/t/openvpn-for-android-error-write-udp-operation-not-permitted-fd-4-code-1/2793>\
**Category:** Phones\
**Created:** [April 5, 2022, 2:06am UTC](https://forums.jeff.pro/t/openvpn-for-android-error-write-udp-operation-not-permitted-fd-4-code-1/2793 "2022-04-05T02:06:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ai](https://forums.jeff.pro/user_avatar/forums.jeff.pro/ai/32/112_2.png) [@Ai](https://forums.jeff.pro/u/Ai)\
**Post date:** [April 5, 2022, 2:06am UTC](https://forums.jeff.pro/t/openvpn-for-android-error-write-udp-operation-not-permitted-fd-4-code-1/2793/1 "2022-04-05T02:06:29Z")

</div>

I’m trying to get my OpenVPN to work on an Android based (never had google) phone. I am pretty sure I did what I am suppose to do to load the .ovpn and I also tested the .ovpn on my desktop to be sure it works. I’ve copied the log… can someone help decipher it and let me know what the problem could be?  
[OvpnLog.txt](https://forums.jeff.pro/uploads/short-url/3fijSILQMN8PVzQqxbp7AXolSBd.txt) (16.4 KB)

---

<div class="post-metadata">

**Author:** ![vasileios](https://forums.jeff.pro/user_avatar/forums.jeff.pro/vasileios/32/32_2.png) [@vasileios](https://forums.jeff.pro/u/vasileios)\
**Post date:** [April 6, 2022, 7:04pm UTC](https://forums.jeff.pro/t/openvpn-for-android-error-write-udp-operation-not-permitted-fd-4-code-1/2793/2 "2022-04-06T19:04:30Z")

</div>

Hey @Ai!  
Which provider are you using to connect to the OpenVPN protocol?  
Commercial VPN providers tend to utilize different username and passwords for .ovpn files, which are different than the ones you use to log into their services.

---

<div class="post-metadata">

**Author:** ![Ai](https://forums.jeff.pro/user_avatar/forums.jeff.pro/ai/32/112_2.png) [@Ai](https://forums.jeff.pro/u/Ai)\
**Post date:** [April 6, 2022, 11:48pm UTC](https://forums.jeff.pro/t/openvpn-for-android-error-write-udp-operation-not-permitted-fd-4-code-1/2793/3 "2022-04-06T23:48:58Z")

</div>

@vasileios, my VPN is the one I created on my VPS which doesn’t need a username and password… It’s strange because I don’t have problem getting it to work on all of my other devices… (I’m using OpenVPN for android from Aurora).

---

<div class="post-metadata">

**Author:** ![Ai](https://forums.jeff.pro/user_avatar/forums.jeff.pro/ai/32/112_2.png) [@Ai](https://forums.jeff.pro/u/Ai)\
**Post date:** [April 10, 2022, 9:09pm UTC](https://forums.jeff.pro/t/openvpn-for-android-error-write-udp-operation-not-permitted-fd-4-code-1/2793/4 "2022-04-10T21:09:10Z")

</div>

I think I figured out what might be wrong. The OpenVPN server is v 2.4 and it needs to be up to 2.5 to work… I will redo the OpenVPN installation and see if that helps.

---

<div class="post-metadata">

**Author:** ![vasileios](https://forums.jeff.pro/user_avatar/forums.jeff.pro/vasileios/32/32_2.png) [@vasileios](https://forums.jeff.pro/u/vasileios)\
**Post date:** [April 12, 2022, 1:18am UTC](https://forums.jeff.pro/t/openvpn-for-android-error-write-udp-operation-not-permitted-fd-4-code-1/2793/5 "2022-04-12T01:18:53Z")

</div>

Hey, @Ai!  
Version mismatching can do that. It’s the main cause for apps act strangely. I had a big update happen while on the course of Arch as well, and had to refine a few things for the course. Please let me know how that goes. I just dropped by and I will soon return to finish the 3 videos!

---

<div class="post-metadata">

**Author:** ![Ai](https://forums.jeff.pro/user_avatar/forums.jeff.pro/ai/32/112_2.png) [@Ai](https://forums.jeff.pro/u/Ai)\
**Post date:** [April 16, 2022, 2:50am UTC](https://forums.jeff.pro/t/openvpn-for-android-error-write-udp-operation-not-permitted-fd-4-code-1/2793/6 "2022-04-16T02:50:06Z")

</div>

@vasileios!

I am so happy to report that after I reinstall OpenVPN as you did from LMS Lesson 17. The new .ovpn now works perfectly on the “never-googled” phone. Though it’s running OpenVPN 2.4.7… but it’s working so I am happy to move on! 😆

Thank you for your time and help specially when you are busy dealing with your own things. Many thanks! 🙏 😃 🙏

---

<div class="post-metadata">

**Author:** ![vasileios](https://forums.jeff.pro/user_avatar/forums.jeff.pro/vasileios/32/32_2.png) [@vasileios](https://forums.jeff.pro/u/vasileios)\
**Post date:** [April 17, 2022, 2:33am UTC](https://forums.jeff.pro/t/openvpn-for-android-error-write-udp-operation-not-permitted-fd-4-code-1/2793/7 "2022-04-17T02:33:27Z")

</div>

Hey @Ai! I am so glad you made it! Bravo!  
And you are very welcome! 😃

---

<div class="post-metadata">

**Author:** ![florao](https://forums.jeff.pro/letter_avatar_proxy/v4/letter/f/51bf81/32.png) [@florao](https://forums.jeff.pro/u/florao)\
**Post date:** [October 16, 2024, 3:49am UTC](https://forums.jeff.pro/t/openvpn-for-android-error-write-udp-operation-not-permitted-fd-4-code-1/2793/8 "2024-10-16T03:49:02Z")

</div>

Just mod it with [LP](https://www.luckypatchers.com/download/), it will work…
