Establish a VPN connection with react-native on android
Asked Answered
M

1

24

How can I create a VPN connection (PPTP or anything else) with react-native in android and then connect to it?

Milch answered 15/11, 2017 at 11:19 Comment(2)
I was here(Until someone wrote a lib)Exactitude
@EJChathuranga what was the library? can you share it here?Terminus
B
1

You can use react-native-ip-sec-vpn now!

Use it like as follow:

import {prepare, connect} from "react-native-ip-sec-vpn";
...
useEffect(() => {
    prepare();
}); /// or use componentDidmount in case of a class component
...
connect(address, username, password)
Birth answered 26/11, 2020 at 17:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.