0

I'm trying to use TOR Browser in my code like this:

Proxy proxy = new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("127.0.0.1", 9150));
//add proxy to some other Java class to use
System.out.println(proxy.address()); //127.0.0.1:9150

It would print the locahost address instead of the IP the TOR Browser routes the traffic to. Is there a way to get the later?

  • Are you saying the you want the IP of the guard node? – JSEvans Jan 17 at 22:30
  • @JSEvans I want the IP that the final site that my program connects to, sees – parsecer Jan 18 at 12:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.