Questions tagged [android-vpn-service]

101 questions
1
vote
1 answer

How to setup a proxy VPN in android?

I want to connect to an HTTP proxy like this 95.179.128.75:8080 and tunnel all phones like ultrasurf app. I try to make a Vpn Service with these codes: class MyVpnService : VpnService() { override fun onStartCommand(intent: Intent?, flags: Int,…
Marlen Schreiner
  • 726
  • 10
  • 25
1
vote
0 answers

Does VPN from Android App tunnel network traffic from Chrome on Chromebook?

I am working on a VPN app (uses VpnService) which has been working on Android devices. When I run it on a Chromebook, the VpnService appears to be started correctly based on the logs. Additionally, the OS acknowledges that my app is running a VPN in…
1
vote
0 answers

BufferedInputStream on Android - Invalid Argument Error

I'm currently working on a project which uses Android's VpnService. During performance testing, I found out that reads are slow from the FileInputStream that I created over the FileDescriptor returned by establish() method. My working code snippet…
Siddharth Kamaria
  • 2,448
  • 2
  • 17
  • 37
1
vote
0 answers

OpenConnect VpnService for Android

As I know there no API to support PPTP or L2TP connections inside android, so I switched to using openconnect (ocserv). Is there any VpnService or API to connect to ocserv using Android? I tried the sample app (ics-openconnect) but the source code…
Arrowsome
  • 2,649
  • 3
  • 10
  • 35
1
vote
0 answers

How to establish a VPN connection (Cisco IPSec Xauth PSK) within my android app instead of activating it through Android's inbuilt VPN tool?

I am developing an app where I have to connect to a remote server through VPN. Presently I am using Android's inbuilt tool for VPN configuration and connection (Settings>More>VPN>...), which I have to activate and deactivate several times during the…
Frederik
  • 33
  • 9
1
vote
1 answer

How to find out if android OS is stopped Service

I have written an VPN using android's VPNService and it works perfectly. When I run it, it creates a foreground service and sends all traffic through my VPN server. It also has an internal reconnecting mechanism to reconnects VPN server if it…
Afshin
  • 8,839
  • 1
  • 18
  • 53
1
vote
0 answers

Is it possible to see path of a HTTPS request with VpnService

I need to be able to see the path (and headers if possible) of HTTPS connections made through my VpnService that hosts a local VPN server. Is this possible? For instance, when going to https://google.com/somedir/somejsfile.js, I need to be able to…
Skosh
  • 165
  • 1
  • 9
1
vote
0 answers

Set Android Device as a HTTP Proxy Server?

Are there any way to set an Android Phone become a http-proxy server which the other devices can use the server to browser the internet? I know may use some sockets code ,but are there any open source I can use? Or are there any website talk about…
1
vote
1 answer

What happens to the VPN app if it gets killed?

This is a general question as I don't have enough understanding of the following scenario and unfortunately couldn't find anything on google that explains it. Let's say I have an app that extends VPN Service, some async tasks, some threads to read…
Mike
  • 147
  • 2
  • 16
1
vote
0 answers

android DatagramChannel tunnel must connect to a server in VpnService?

I'm coding a VPN in android for watch the local network traffic (packet) and let the packets go after inspection. my app is base on ToyVPN, so far i can receive the packets but i can't send them Through the tunnel. i see the tunnel connects to…
1
vote
1 answer

VPNService - Disallowed Applications?

So I'm trying to block Google Chrome from accessing the Internet whereas other applications can do so. I'm using VPNService API provided by android. The VPN service is setup correctly but I'm unable to block chrome. This is the - @Override public…
Rektirino
  • 582
  • 5
  • 24
1
vote
0 answers

VpnService: change allowed application?

I have a VpnService with some allowed applications and some that arent, taken from a list that could change anytime. public void onCreate() { super.onCreate(); isRunning = true; setupVPN(); …
DmitryB
  • 119
  • 1
  • 2
  • 13
1
vote
1 answer

How to programmatically connect with vpn server without using "Secret key"?

I want to connect with VPN server but I don't want to use secret key. Currently the code snippet i found to programmatically create vpn connection is as follows: MyVpnClient: package com.example.android.toyvpn; import android.app.Activity; import…
suv
  • 171
  • 3
  • 15
1
vote
1 answer

How android Always-on VPN internally works?

I can read from developer.android.com about how to support Always-on VPN from the VPN application point of view. But couldn't find any information how the android system internally implements this feature? Does the android system wake up…
Akh
  • 5,961
  • 14
  • 53
  • 82
1
vote
1 answer

How to observe a collection from android foreground (vpn)service

I have a singleton class with the "block/allow logic" for my VPN tunnel. Packets sent into the tunnel are not emitted, applications are allowed to bypass based on an allowance list, therefore it can behave as a simple implementation of a firewall.…