I am running tomcat on my machine, and just for testing. I am trying to connect to my local host. I know that local host ip for android is 10.0.2.2. But it throws an exception saying
java.net.SocketException: Network Unreachable
How should i connect to my local host machine?
Problem solved. I was trying it from the phone under debugging mode. works finr from emulator