nizwar / openvpn_flutter

A package that allow you to connect OpenVPN service with Flutter
https://pub.dev/packages/openvpn_flutter
GNU General Public License v3.0
85 stars 99 forks source link

Recently on iOS, the connection cannot be established. Once the dial button is clicked, it returns to "disconnected" after one second. #102

Open James-bitoss opened 8 months ago

James-bitoss commented 8 months ago

Previously, dialing was possible, but recently, without any updates, dialing directly returns "disconnected". There are also no logs on the VPN server side.

usaikoo commented 6 months ago

I am facing the same problem.

zmesinger commented 5 months ago

I have the same problem on iOS, after trying to connect vpn changes stages in this order: connecting -> disconnecting -> disconnected. No problems when using the OpenVPN client for iOS.

vuralkayracetintas commented 5 months ago

Are you using a simulator or testing on a real device?

zmesinger commented 5 months ago

Multiple real devices. iPhone 13 Pro, iPhone 14 and iPhone 11.

Borzalic commented 5 months ago

Same here

beto-hopee commented 5 months ago

I same

talkbiz commented 5 months ago

any solution yet?

beto-hopee commented 5 months ago

@talkbiz yes, Can you handle tunlekit for it it

beto-hopee commented 5 months ago

https://github.com/beto-hopee/tunnelkit

beto-hopee commented 5 months ago

https://github.com/beto-hopee/passepartout-app

vuralkayracetintas commented 5 months ago

I was getting the same error at first and then it got fixed but I think there is something wrong with the openvpn servers.

talkbiz commented 5 months ago

@talkbiz yes, Can you handle tunlekit for it it

@talkbiz yes, Can you handle tunlekit for it it

Thank you @beto-hopee But im so lost, what are the steps to take please?

shahjash1212 commented 5 months ago

I have the same issue it not getting connected and shows disconnected while the same code and openVPN config file works perfectly fine in the android app !

if anyone know any other way to approach this issue "Specially for the IOS platform" Do comment.

vuralkayracetintas commented 5 months ago

when I first used the package 1 month ago, it was working. I bought the vpn server from vpn jantit and used open vpn. It started not working later, both android and ios.

I have the same issue it not getting connected and shows disconnected while the same code and openVPN config file works perfectly fine in the android app !

if anyone know any other way to approach this issue "Specially for the IOS platform" Do comment.

saeedpouryan commented 2 months ago

hi did you find a solution?

@James-bitoss @vuralkayracetintas @shahjash1212 @talkbiz

hredhayxz commented 1 month ago

Solution:

You can resolve this issue by following one of these steps:

Or, follow these steps:

  1. In your Podfile, set the platform target:

    platform :ios, '14.0'
  2. In Xcode, navigate to your app's target:

    • Go to Runner > General and set the Minimum Deployment Target to 14.0.
  3. For the VPNExtension target in Xcode:

    • Go to VPNExtension > General and set the Minimum Deployment Target to 15.6.

This works for me. Thank you!