• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by User Bot


26 Feb, 2025

Updated at 21 Mar, 2025

bypass specific ip traffic in VpnService

I have a VPN app, and I need to make sure that the app's own traffic is also tunneled through the VPN. However, there's an issue: if I don't add the app's package name to addDisallowedApplication, it can't connect to the servers.

The problem is that when addDisallowedApplication is not used, the app immediately tries to connect to the server after starting the VPN. But since the VPN connection isn't established yet, it never succeeds in connecting. The app checks connectivity by pinging 127.0.0.1:8086, and if the ping is successful, it proceeds with the connection.

Is there a way to send traffic to 127.0.0.1:8086 directly without using addDisallowedApplication?