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?