110 questions
0
votes
1
answer
190
views
Why is UDP traffic bypassing my Android SOCKS5 Proxy server? (Is VpnService essential for UDP?)
I'm a student developer working on an Android application that acts as a SOCKS5 proxy server.
What I've Implemented:
A SOCKS5 server on Android that handles the protocol's handshake, request, and ...
0
votes
1
answer
155
views
How to configure VPN on Android for a React Native app that couldn't work with it
I've just finished building my first application for Android with React Native and Expo. The app is configured to access a specific server IP address via a VPN. Currently, the domain name is not in ...
3
votes
1
answer
325
views
Implementing a local VpnService that allows whitelisted traffic won't load any websites
Let me preface this by saying that I'm definitely out of my depth here in terms of knowledge. I'm trying to implement a VpnService that users of my app can enable in order for any traffic not going ...
0
votes
0
answers
150
views
Is there a way to implement domain-based split tunneling in Android without parsing DNS queries?
Is there a way to implement domain-based split tunneling in Android without parsing DNS queries?
Hey fellow Android devs,
I'm working on implementing domain-based split tunneling in an Android VPN ...
0
votes
0
answers
47
views
Android VpnService, Called establish method error,
When I call the establish method, I get the following error:
java.lang.IllegalStateException: Cannot set address
or
java.lang.IllegalStateException: Cannot bind com.sdp.etrust.sdk.logic....
0
votes
2
answers
529
views
How to Add Http Proxy Authentication Credentials in VPNService on Android?
I am trying to make proxy settings via a fake vpn in my react native android application. I am giving proxy settings into builder thanks to VpnService with android.net.ProxyInfo package.
But the proxy ...
3
votes
2
answers
1k
views
How to implement VPN split tunneling in Android's VpnService to exclude certain IPs from the VPN tunnel?
I am trying to implement split tunneling in an Android VPN application. Specifically, I want all traffic to go through the VPN by default, but certain IPs should bypass the VPN and use the regular ...
0
votes
0
answers
146
views
Android VPN service || Able to capture packets but failing to do DNS resolution
Goal
The purpose of this work is to find a way to make a transparent proxy that will log the packets.
Things that are happening -
I can capture the packet log it.
Able to send the packet to dns ...
0
votes
1
answer
882
views
Connecting to IPsec IKEv1 VPN Server on Android devices
I have the second:
My company bought VPN servers with iOS app for managing VPN connection to that servers. I need to write the same App for Android devices. I never worked with VPN connection on ...
1
vote
1
answer
1k
views
How to Implement a Local VPN in Android for Content Filtering Without Server Dependency?
I'm working on an Android application that requires creating a local VPN to route all device network traffic for content filtering purposes. Instead of using a remote VPN server, my goal is to develop ...
2
votes
1
answer
180
views
Android vpnInterface causes ERR_NETWORK_CHANGED Error
I'm working on a Kotlin app in Android Studio that requires the user's web browsing to be monitored. I tried to use the android VPN API for this, and wrote the two functions below. The script compiles ...
1
vote
0
answers
140
views
Android VPNService - DatagramChannel cannot write packets after calling VPNService.establish
I'm working on a pet VPN project for Android. Now I need to develop an application that would send all packets from the device to a remote server and receive a response from it (without authorization ...
1
vote
0
answers
116
views
Access VPN profile in Flutter application
I want to develop an application with Flutter and the app must access the VPN profile of the device and list of the available VPNs.
Also I want the app to automatically turn on or off the VPNs.
Is ...
1
vote
0
answers
554
views
How to make Android app eligible to use VPN Service and publish to Google Play Console?
I have a voip app and it is almost complete, I added VPN service to current app because it was a requirement to secure the audio phone calls, and whenever app launches it should connect to vpn first ...
2
votes
0
answers
86
views
Block images VPN - Android
I want to create a self vpn to block nsfw photos using nsfw js
I tried to write a simple empty vpn unsuccessfully
When I open a website the loading take forever. and I don't know how to block the ...
0
votes
1
answer
130
views
Track application id or package name using DatagramPacket in android
I open a socket and track network calls in the Android application. Currently, I can view the hostname and IP address of the coming network traffic using the DatagramPacket class. Is it possible to ...
1
vote
0
answers
146
views
How to do DNS outside of VPN in Android VPN app
My Android app uses the VpnService API. The app makes some connections, starts a VpnService and shuttles data to-and-fro. Fairly normal.
While the VpnService is active, under particular circumstances ...
0
votes
1
answer
368
views
How to exclude a website from VPN tun0 interface in Android
I have a VPN established where I do split tunneling with "builder.addallowedapplication()". I would like bypass a few websites from VPN tun0 and rather use the wlan0 interface.
I have tried ...
2
votes
0
answers
148
views
How to get active VPN package name in Android
I'm struggling to find a way to determine the package name of the active VPN profile in Android.
Is there an API for this that is supported at the API 33 level?
5
votes
1
answer
1k
views
Is this possible to set Custom IP for DNS server in the Wifi Settings from my Android App?
I'm trying to set DNS to the Wifi and 4G data, So that i can use my Custom DNS server by which all my data will through my own server.
By researching in internet i saw it's dificult to set for the ...
3
votes
2
answers
725
views
Android VpnService route exclusion on API prior to 33
I have an android app which uses VpnService API to establish a connection to a proxy. My intention is to let DNS queries bypass the proxy (because it can only tunnel TCP, and not UDP, which is used by ...
6
votes
2
answers
931
views
How do some apps block others from reaching WiFi/mobile-networks?
Background
I've noticed various firewall apps on the Play Store being able to let the user choose which apps are allowed to use Wi-Fi and/or mobile-network for Internet connection. These app use VPN ...
0
votes
0
answers
492
views
Android VpnService input data not readable
I'm going to create an Android vpn application. I have extended a VpnService class. Below is my class:
public class MyVpnService extends VpnService {
private String TAG = "mjh";
...
0
votes
0
answers
169
views
On Chromebook getConnectionOwnerUid() return -1 (Process.INVALID_UID) on chrome app
I have a VPN service that uses the [getConnectionOwnerUid()]1 function to get the user ID (UID) of the owner of a network connection. On Android, this function works well for all apps. However, when I ...
1
vote
0
answers
352
views
VPN disconnects when removing from recent apps on Xiaomi devices
In my case I implemented CakeVpn (https://github.com/ashraf789/Cake-VPN) application as second module of project.
In original version from google play there's no problem with removing from recent.
And ...
1
vote
0
answers
78
views
How to exlude multi applications when implementing VPN?
I am implementing VPN on my Android App.
I"m using this method to exlude proccess i don't want to go trow my tunnel :
builder.addDisallowedApplication(getPackageName());
builder....
1
vote
0
answers
258
views
Problems making a "proxy" for Android with VPNService
For some reason I can't understand, when I'm parsing the buffer values, I almost never get the version as 4 (which would be the default for IPv4), and most of the time I get some random value like 10 ...
0
votes
3
answers
625
views
App is not function correctly after uploaded to Play Console
I created a VPN App and it is working correctly in Release and Debug APK files but when I upload it to Play Store, and then downloaded from Play Store it does not connect to the server and say "...
1
vote
0
answers
315
views
ToyVPN Example with username and password credentials (PPTP)
I have this ToyVpn sample project and I want to test it.
and in order to connect to the vpn the ToyVPN needs:
(Server IP, Server port, Shared Secret)
but the proxy format that I have is different:
(...
1
vote
0
answers
2k
views
Android create a L2TP/IPSEC connection
Hello Android Community!
How can I setup a L2TP/IPSEC connection on android using this IPSEC/IKEV2 library ?
I didn't found any documentation about it. Also I am only able to setup a VPN connection ...
1
vote
1
answer
2k
views
how to log/check network traffic through my vpn service app in android
I have read https://developer.android.com/guide/topics/connectivity/vpn but i have a few questions about it:
am i creating a vpn client according to the code i have pasted below, if so, where is the ...
0
votes
0
answers
170
views
How to control simultaneous stable traffic (for any consumers: Maps, Auth, ffmpeg) to Cellular & to WiFi device (known port) for Android App?
Problem:
By default, Android has only one active Network, so when you have your other device connected to your phone over Wi-Fi (IoT, Dashcam, whatever, obviously with no internet), your Android ...
0
votes
1
answer
901
views
Using a file descriptor from Android VpnService.Builder in native code
I am making a VPN application in Android and the following seems to work great:
public class MyVpnService extends VpnService {
private ParcelFileDescriptor lt;
public int onStartCommand(...
0
votes
1
answer
609
views
When the VPN is connected, user will be able to enter the app and if they are not connected, they will not be able to enter. How do I do that?
I have seen in many apps that when VPN is connected you can get inside the app and if you are not connected you can't get in.
How can I do this with Java programming?
1
vote
0
answers
260
views
VPN service: Tunnel interface write() from native lib does not fwd pkt to end applications
I am coding an app with a native (C/C++) lib to create a tunnel interface and inspect read/write pkts prior to forwarding via the actual physical interface. I am interfacing via JNI to create and ...
0
votes
1
answer
311
views
Android VPNService setBlocking(true) Breaks VPN
I'm looking at trying to implement a VPNService on Android for packet filtering and reporting and I have initially been looking at this project:
https://github.com/hexene/LocalVPN
As well as this I ...
0
votes
1
answer
678
views
How to achieve VpnService's protect in an iOS VPN?
I'm porting an Android device's VPN App to iOS (using NEPacketTunnelProvider).
Android provides a mechanism to bypass VPN for some tcp/udp connections, using the following API:
class VpnService {
//...
0
votes
1
answer
189
views
VpnService.Builder IPv6 error null object
builder.setSession("MyVPNService");
builder.addAddress(deviceIp, 24);
builder.addDnsServer(dnsIp)
.addDnsServer(dns2Ip)
...
1
vote
0
answers
1k
views
Create L2TP/IPSec VPN Client in Android Programically
I am working on an Android app using Android Studio and what I am trying to do is building a simple VPN client that implements and L2TP protocols.
I have googled and searched here in Stack Overflow ...
1
vote
0
answers
253
views
How to develop an android app that retrieves all the browsing information using VPN api?
Note: The app that I am trying to build will go into production. This is not for just practicing
I am trying to develop an app that needs to retrieve the websites visited by the user on an android ...
1
vote
1
answer
377
views
Starting Android VPN service that is not rooted anywhere
I am looking to replicate the Ookla Speedtest displaying of data usage per application via the Android VPN service.
It appears they start a VPN service however they state that it is not routed through ...
0
votes
1
answer
1k
views
error: cannot find symbol if (!"ovpn3".equals(BuildConfig.FLAVOR))
When I create vpn app I am geting this type of error plz someone help me in this
C:\Users\asus\Desktop\WorkBook\UltimateVpn\app\src\main\java\de\blinkt\openvpn\core\OpenVPNService.java:472: error: ...
1
vote
0
answers
106
views
i want to read bytes from vpninterface and then write back to it
i have setup a vpn service and then configure a vpn interface.
private void setupVPN() {
try {
if (vpnInterface == null) {
Builder builder = new Builder();
...
1
vote
0
answers
644
views
How to know when Android VPN prepare is ready without Activity?
When you want to start Vpn we can do :
VpnService.prepare(activity)
Then :
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, ...
1
vote
0
answers
1k
views
Disconnect the VPN that other apps have enabled in Android
Is there a way to disconnect any VPN connection on the Android device?
My app uses Wi-Fi Direct to establish a P2P connection with other devices. On some devices, Wi-Fi Direct does not work when the ...
5
votes
1
answer
2k
views
"Allow USB debugging?" keeps popping up
I'm going nuts here. I am trying to debug my app on a Samsung Galaxy Tab S5e.
My application runs a VPNService and I am reasonably sure this is the root cause of the following issue:
When debugging ...
1
vote
1
answer
2k
views
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 ...
3
votes
0
answers
172
views
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, ...
0
votes
1
answer
206
views
Accessing Web-Services from Android which are accessible through VPN on Web
I have a application i know how to consume web services i am up with a challenge and lack of knowledge on network side,
The Web Services are accessible through VPN on Web which is protected with
...
2
votes
1
answer
680
views
Can not browse anything after connecting to a tunnel
So, I was going through the guide of connecting to a VPN using an applicaton from here guide
. What I really want is to make my own VPN app by using free DNS available on the internet. Because I want ...