Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenVPN Disconnects Instantly on Connection Attempt (Flutter) #132

Open
RahimUllahAxlic opened this issue Feb 20, 2025 · 9 comments
Open

Comments

@RahimUllahAxlic
Copy link

RahimUllahAxlic commented Feb 20, 2025

I am using the openvpn_flutter package to implement VPN functionality in my Flutter app. The VPN connects and works perfectly on Android, but on iOS, it instantly disconnects as soon as I tap the connect button.

Steps to Reproduce:
Configure OpenVPN using the openvpn_flutter package.
Attempt to connect to a VPN server on iOS.
The VPN connection initiates but immediately disconnects without any error message.

Expected Behavior:
The VPN should establish a stable connection, similar to how it works on Android.

Actual Behavior:
The VPN connection starts but disconnects instantly.
No error message is displayed.
The same configuration works fine on Android.

Environment Details:
Flutter version: 3.24.4
openvpn_flutter version: 1.3.4
iOS Version: 18.2
Device: iPhone 14 Pro Max
VPN Configuration: .ovpn

Troubleshooting Steps Tried:
Verified that the .ovpn file is correctly formatted.
Ensured correct app permissions Network Extensions, VPN Entitlements.
Tested different VPN servers and configurations.
Checked iOS logs for any errors → No issues found in logs.
Tried the solution mentioned in this issue, which worked for someone with the same problem, but it did not work for me.

Additional Context:
This issue does not occur on Android; VPN works as expected there.
Any help or guidance would be appreciated!

Image
this is the setting image of vpn

Image this is the xcode image
@RahimUllahAxlic
Copy link
Author

@nizwar This issue is very urgent for me, and I need a solution by this weekend.

@nizwar
Copy link
Owner

nizwar commented Feb 21, 2025

Hi, kindly email me one of your server so i can have a look on this issue

@RahimUllahAxlic
Copy link
Author

@nizwar i already sent email please overview

@shafiquecbl
Copy link

shafiquecbl commented Feb 26, 2025

@nizwar @RahimUllahAxlic did you find any solution? This appears to be on some devices. I am getting this issue in production and in debug. No error is show in console.

@aiqalatif
Copy link

me too facing the same issue kindly if reslove your issue guide us to

@RahimUllahAxlic
Copy link
Author

@shafiquecbl No, I haven't found a solution yet. This issue seems to occur on certain devices, and I'm experiencing it in both production and debug modes. There's no error visible in the console. I'm still waiting for @nizwar response via email.

@aiqalatif
Copy link

aiqalatif commented Mar 3, 2025 via email

@RahimUllahAxlic
Copy link
Author

@nizwar, could you please allocate some time to look into this issue as well?

@RahimUllahAxlic
Copy link
Author

@aiqalatif did you try #86 this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants