gayanvoice / android-vpn-client-ics-openvpn

⭐ Create your Android VPN App by using Android Studio and publish to Google Play Store 🤖
https://gayanvoice.medium.com/develop-a-vpn-app-in-java-using-android-studio-6f1f2d66031e
MIT License
597 stars 320 forks source link

App not working after creating file and app details.json #26

Closed m2ahmed closed 4 years ago

m2ahmed commented 4 years ago

Hello, After following your tutorial, i try to do the same, but not working. this is the filedetails.json file that i have created with ovpn data. http://www.taleemconsultancy.com/vpndata/filedetails.json this is app details file that i have created. http://www.taleemconsultancy.com/vpndata/appdetails1.json

A pop up window appears which ask for user name and password but still after adding password it vpn service is not activated.

And another thing if we add freeopenvpn 511097504 tag then on openVpn Schwabe app it automatically connects without asking password but in this app with auth-user-pass, it still asks for username & password and after providing user & pass, Still donot connect.

screen

Need your help

gayyankurupu

gayanvoice commented 4 years ago

This app does not support username and password option.

m2ahmed commented 4 years ago

Then how this vpn will work ? Because if auth-user-pass is added along with configuration then still doesn't work.

gayanvoice commented 4 years ago

You can implement it by having an API with authentication in your app. The username and password for OpenVPN was buggy.

m2ahmed commented 4 years ago

This means sir, that this code doesn't connect to vpn ?

m2ahmed commented 4 years ago

Can you provide an API implementation in this app ?

gayanvoice commented 4 years ago

This means sir, that this code doesn't connect to vpn ?

It connects. Don't use usernames and passwords with the OpenVPN configuration.

gayanvoice commented 4 years ago

Can you provide an API implementation in this app ?

It's a simple GET and POST API. Use Mongo or SQL with PHP or Node.js