I am testing my android app which connects to MySQL server installed on my machine. Everything is working fine If I use Emulator for testing. But when I connect my Android Tablet (through USB cable)it gives HTTP error
HTTP problem or the connection was aborted org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.1.9:3000 refused
While testing with emulator I have given my machine's local IP i.e. 192.168.1.9. I searched a lot on web but couldn't get how to have my tab post a request on my DB. One of the posts mentioned to change host file of tab but couldn't locate the host file for editing. Please advise. Thanks.