Need help with flutter_vpn?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

199 Stars 65 Forks GNU Lesser General Public License v2.1 55 Commits 26 Opened issues


Plugin to access VPN service for Flutter | Flutter 的 VPN 插件

Services available


Need anything else?

Contributors list

Flutter VPN plugin

Pub Package Awesome Flutter

This plugin help developers to access VPN service in their flutter app.
本插件帮助开发者在自己的应用内调用 VPN 服务。

The Android part was implemented by strongswan which support ikev2 protocol.
The iOS part was implemented by NEVPNManager.

Issues and PRs are welcome!


For Android

Modify your

to use abiFilter since flutter doesn't apply abiFilter for target platform yet.
android {
    buildTypes {
        release {
            ndk {
                if (!project.hasProperty('target-platform')) {
                    abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64'
                } else {
                    def platforms ='target-platform').split(',')
                    def platformMap = [
                            'android-arm'  : 'armeabi-v7a',
                            'android-arm64': 'arm64-v8a',
                            'android-x86'  : 'x86',
                            'android-x64'  : 'x86_64',
                    abiFilters ={ e ->
                        platformMap.containsKey(e) ? platformMap[e] : e
The plugin will automatically download pre-build native libraries from here if they haven't been downloaded.

For iOS

You need to open

Personal VPN
Network Extensions
capabilities in Xcode: see Project->Capabilities.

VPN connection errors are handled in swift code, you need to use Xcode to see connection errors if there is any.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.