title: Get global IP address from java http server
body: <p>I m starting a local http server using this code:</p>
  
  <pre><code>    HttpServer server = HttpServer.create(new InetSocketAddress(8000), 0);
      server.createContext("/intro", new MyHandler());
      server.setExecutor(null);
      server.start();
  </code></pre>
  
  <p>now I want to hit the url <code>/intro</code> from some other server.The problem is I don't know the ip adress to hit.Doing <code>server.getAddress()</code> gives <code>0.0.0.0:8000</code>.I want to find the global ip address.</p>