2025年orbot android教程,Android Orbot malformed reply from SOCKS server

orbot android教程,Android Orbot malformed reply from SOCKS server问题 I am trying to enable TOR support on my own XMPP app in android I am using orbot as TOR proxy and I have the following code to connect app socket socket new Socket new Proxy Proxy Type

大家好,我是讯享网,很高兴认识大家。

问题

I am trying to enable TOR support on my own XMPP app in android. I am using orbot as TOR proxy and I have the following code to connect app socket:

socket = new Socket(new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("127.0.0.1", 9050)));

socket.connect(addr, Config.SOCKET_TIMEOUT * 1000);

but I am getting Malformed reply from SOCKS server even that my Orbot is up and running. I believe that this error is thrown when app cant access proxy server or mentioned server is not SOCKS proxy.

I have also tried to use jsocks:

Socks5Proxy sProxy = new Socks5Proxy("127.0.0.1", 9050);


讯享网

sProxy.resolveAddrLocally(false);

String host = account.getServer().toString();

int port = 5222;

System.out.println(host + ":" + port);

try {

socket = new SocksSocket(sProxy, host, port);

}catch(SocksExce

小讯
上一篇 2025-04-02 11:16
下一篇 2025-02-06 09:42

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/20741.html