How can I allow a port on an Ubuntu 11.10 machine that is on an Ethernet LAN to be accessed by my Android device via WiFi on the same LAN?
Specifically, I'm doing some Android app development where the app needs to access a port on the Ubuntu machine (http://192.x.x.x:port) and the Android app responds:
Failure: Connection to http://192.x... refused
I am using the LAN address 192.x... as displayed by ifconfig on the Ubuntu machine.
Thanks.
Perhaps there is no service listening on the port you are connecting to?
Just to check if there is a networking problem, you can open a terminal, cd to a non-private directory (be careful, the content of all files of the directory where this command is started will be served on a network, so choose with care) and enter:
This will serve the current directory over HTTP on port 8000 on all your network interfaces.
Now on your Android open a browser and enter the address http://192.x.x.x:8000 and check if your browser displays the files from the directory where you entered the python command above.