title: How to write an Android SocketServer to listen on wifi
body: <p>I've written a thread using <code>java.net.SocketServer</code> to listen on a particular port. It works fine in the android simulator (using port forwarding). I'm planning to connect over wifi to this port when the app is being used. However, the <code>SocketServer</code> documentation says that if you don't supply an <code>InetAddress</code>, the server listens on localhost.</p>
  
  <p>Am I correct that if I do not supply the address, I will not be able to get a connection over wifi? How can I get the <code>InetAddress</code> of the wifi connection to pass to the <code>SocketServer</code>?</p>