I am trying to use silvertunnel-ng in order to connect to a hidden service which i created with tor. If i use the code bellow from netbeans i can connect to the socket using the .onion url.
我正在尝试使用silvertunnel-ng来连接我用tor创建的隐藏服务。如果我使用netbeans下面的代码,我可以使用.onion url连接到套接字。
final String HOST = "xw7pdude7qmfqiqim67f.onion";
final TcpipNetAddress proxyTcpipNetAddress = new TcpipNetAddress(HOST, 1444);
System.out.println("Connecting ");
socket = NetFactory.getInstance().getNetLayerById(NetLayerIDs.TOR_OVER_TLS_OVER_TCPIP).createNetSocket(null, null, proxyTcpipNetAddress);
System.out.println("Connected");
the libraries that i use are:
我使用的库是:
- netlib-0.0.3.jar
- bcprov-jdk15on-152.jar
- bcpkix-jdk15on-152.jar
- httpclient-4.1.2.jar
- httpcore-4.1.2.jar
- slf4j-api-1.7.12.jar
- slf4j-jdk14-1.7.12.jar
when i transfer the project to android studio it works only if i use
当我将项目转移到Android工作室时,它只有在我使用时才有效
- netlib-0.0.4-SNAPSHOT.jar
- sc-light-jdk15on-1.47.0.2.jar
- slf4j-api-1.7.12.jar
- slf4j-jdk14-1.7.12.jar
but the connection fails with a timeout error like that
但连接失败,出现超时错误
I/ControlNetSocketThread﹕ send timeout to ControlNetSocket(LoggingNetSocket(Socket2NetSocket(Socket[address=/82.94.251.203,port=80,localPort=43309]))): overall timeout reached
Has anyone managed to connect to an .onion url using silvertunnel-ng on android studio? Which libraries should i use? Is there an alternative to silvertunnel-ng?
有没有人设法使用android studio上的silvertunnel-ng连接到.onion网址?我应该使用哪些库?是否有替代silvertunnel-ng?
1 个解决方案
#1
Well, a new snapshot of silvertunnel-ng released a few days ago and the problem is solved. i confirm that connecting to tor from android using silvertunnel-ng is possible.
好吧,几天前发布了silvertunnel-ng的新快照,问题解决了。我确认可以使用silvertunnel-ng从android连接到tor。
#1
Well, a new snapshot of silvertunnel-ng released a few days ago and the problem is solved. i confirm that connecting to tor from android using silvertunnel-ng is possible.
好吧,几天前发布了silvertunnel-ng的新快照,问题解决了。我确认可以使用silvertunnel-ng从android连接到tor。