I wrote a stream using java.net.SocketServer to listen on a specific port. It works great in an Android simulator (using port forwarding). I plan to connect Wi-Fi to this port when the application is in use. However, the SocketServer documentation says that if you do not supply InetAddress , the server listens on the local host.
Is it correct if I do not provide an address, I can not connect to Wi-Fi? How can I get InetAddress Wi-Fi connection to SocketServer ?
android sockets wifi
xioxox
source share