Questions tagged [android-vpn-service]

101 questions
0
votes
1 answer

VPN Connection for Android Studio Apps

I'm hoping to write an app in Android Studio which will require me to connect to a VPN. I've read through the documentation on this, but I'm having trouble understanding some things about it, which the source code provided at the bottom of the…
David
  • 2,298
  • 6
  • 22
  • 56
0
votes
0 answers

Java Android VPN PPTP protocol programming

I would like to develop an Android VPN application with VpnService.Our server is ready.I just want to communicate with the PPTP protocol.I created a PPTP profile for this.I also used SystemProperties.To do this, the phone needs to be root.How can I…
0
votes
1 answer

Does anybody know whether a system app can extend VpnService in Android or not?

Now, I want to develop a system app which will extend VpnService. But when I call the method 'establish()' to initialize an instance of ParcelFileDescriptor. I got an exception in android 5.0 as below: 08-23 20:47:35.482…
wu jushan
  • 71
  • 2
  • 7
0
votes
1 answer

What is the correct way to convert my IP Packet data into a String?

When I receive an IP Packet with my Android VpnService I read the headers first (as here), then I try to print the received data as follows: int lengthRemaining = packet.remaining(); if (lengthRemaining > 0) { byte[] data = new…
Nick Cardoso
  • 20,807
  • 14
  • 73
  • 124
0
votes
0 answers

Android studio: How to connect to existing VPN from android settings

I am beginner in android and developing an app where I want to connect to an existing VPN connection (already configured in the android settings) during startup. So far, I was able to open the settings activity via intent: Intent intent = new…
0
votes
0 answers

startActivityForResult causes my app to freeze on some devices

I have a device-specific problem. My app starts an intent with startActivityForResult, this works with almost all test devices only on some Android 7 devices, this leads to an APP freeze, where the GUI doesn't react anymore. The code looks like…
0
votes
0 answers

what is an illegal VPN address with vpnservices

I have an IllegalArgumentException because of the vpn address I use with vpn services. In fact I use the same IP address that is set on my device either by 3G/4G or wifi. What are the rules for legal address? When is an address illegal? On my htc…
narb
  • 958
  • 1
  • 13
  • 39
-1
votes
1 answer

From an app, is it possible the get the real IP address if the client installed a VPN?

From an app, is it possible the get the real IP address if the client installed a VPN ? this for Android and/or ios.
zeus
  • 12,173
  • 9
  • 63
  • 184
-1
votes
1 answer

How to track the user browser url by using local vpn in android programmatically?

How to track the user browser url by using local vpn in android programmatically? I am using ToyShark local vpn code. By using this library i can capture the user browser action with in socket data worker. private void writeTCP(Session session) { …
Karthik . N
  • 45
  • 1
  • 6
-1
votes
1 answer

Check if a VPN connection is active in Android and show a message?

I have a third party VPN app on my non-rooted Android 4.4 device, and want to write a background service to monitor the VPN connection and alert the user if the VPN connection is on.
-3
votes
1 answer

Android application access internet via VPN

I am building Android application I need to access to internet via vpn server into my application Not using third application like hotspot shield vpn free or paid no problem
Fadi
  • 181
  • 5
  • 15
1 2 3 4 5 6
7