[英]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 .我想连接到像这样的 HTTP 代理95.179.128.75:8080
并隧道所有手机,如ultrasurf app 。 I try to make a Vpn Service with these codes:我尝试使用以下代码创建 Vpn 服务:
class MyVpnService : VpnService() {
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
Builder().setSession("MyVPNService")
.addAddress("95.179.128.75:8080", 24)
.addDnsServer("8.8.8.8")
.addRoute("0.0.0.0", 0).establish()
return Service.START_STICKY
}
}
But it doesn't work and I didn't find any source for connection to the proxy.但它不起作用,我没有找到任何连接到代理的来源。 Can you help me???你能帮助我吗???
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.