# Connect to VPN from app

**URL:** <https://forum.ionicframework.com/t/connect-to-vpn-from-app/64021>\
**Category:** ionic-v3\
**Created:** [September 20, 2016, 8:37pm UTC](https://forum.ionicframework.com/t/connect-to-vpn-from-app/64021 "2016-09-20T20:37:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankushagg93](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ankushagg93/32/103254_2.png) [@ankushagg93](https://forum.ionicframework.com/u/ankushagg93)\
**Post date:** [September 20, 2016, 8:37pm UTC](https://forum.ionicframework.com/t/connect-to-vpn-from-app/64021/1 "2016-09-20T20:37:56Z")

</div>

Hi All,

Is there any plugin which can open vpn connection from ionic app?

Thanks

---

<div class="post-metadata">

**Author:** ![Apptestgenerate](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@Apptestgenerate](https://forum.ionicframework.com/u/Apptestgenerate)\
**Post date:** [May 23, 2017, 4:52am UTC](https://forum.ionicframework.com/t/connect-to-vpn-from-app/64021/2 "2017-05-23T04:52:26Z")

</div>

Hi @ankushagg93, did you get solution for this?

---

<div class="post-metadata">

**Author:** ![ankushagg93](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ankushagg93/32/103254_2.png) [@ankushagg93](https://forum.ionicframework.com/u/ankushagg93)\
**Post date:** [May 23, 2017, 6:06am UTC](https://forum.ionicframework.com/t/connect-to-vpn-from-app/64021/3 "2017-05-23T06:06:08Z")

</div>

Nope. I think it’s not possible.

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [May 23, 2017, 8:00am UTC](https://forum.ionicframework.com/t/connect-to-vpn-from-app/64021/4 "2017-05-23T08:00:45Z")

</div>

For Android these exist:  
[https://github.com/aquto/cordova-plugin-vpn](https://github.com/aquto/cordova-plugin-vpn)  
[https://github.com/uProxy/cordova-plugin-tun2socks](https://github.com/uProxy/cordova-plugin-tun2socks)

---

<div class="post-metadata">

**Author:** ![umapathi\_v](https://avatars.discourse-cdn.com/v4/letter/u/4da419/32.png) [@umapathi\_v](https://forum.ionicframework.com/u/umapathi_v)\
**Post date:** [April 9, 2018, 9:24am UTC](https://forum.ionicframework.com/t/connect-to-vpn-from-app/64021/5 "2018-04-09T09:24:04Z")

</div>

Hi Sujan,

Have you tried adding those plugins into any app.I have come across one common error while adding those plugins into a TestApp?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [April 9, 2018, 10:51am UTC](https://forum.ionicframework.com/t/connect-to-vpn-from-app/64021/6 "2018-04-09T10:51:43Z")

</div>

No. You will have to find out yourself if those work or not.

---

<div class="post-metadata">

**Author:** ![umapathi\_v](https://avatars.discourse-cdn.com/v4/letter/u/4da419/32.png) [@umapathi\_v](https://forum.ionicframework.com/u/umapathi_v)\
**Post date:** [April 9, 2018, 12:48pm UTC](https://forum.ionicframework.com/t/connect-to-vpn-from-app/64021/7 "2018-04-09T12:48:29Z")

</div>

i added those two. but plugins are not installed getting error UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Variable(s) missing (use: --variable ALLOWWIFI=value)

what is ALLOWWIFI value.

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [April 9, 2018, 4:30pm UTC](https://forum.ionicframework.com/t/connect-to-vpn-from-app/64021/8 "2018-04-09T16:30:08Z")

</div>

No idea. From the looks of it, an error message because one of the plugins you have installed should have gotten this variable. The first plugin contains it in its code, so probably this one: [https://github.com/aquto/cordova-plugin-vpn/search?utf8=✓&q=ALLOWWIFI&type=](https://github.com/aquto/cordova-plugin-vpn/search?utf8=%E2%9C%93&q=ALLOWWIFI&type=)
