title: Using tor browser: how to get an IP address when using SOCKS proxy
body: <p>I'm trying to use TOR Browser in my code like this:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>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?</p>