Android Socket: java.net.SocketException: No route to host
I am trying to connect (through TCP) to the server running on my machine from the Android device. I have android.permission.INTERNET in my manifest file: <uses-permission android:name="android.permission.INTERNET"></uses-permission> I am able to connect using emulator but trying from the device throws an error: Android Socket: java.net.SocketException: No route to host Can anyone please help. Disabled wifi on my Android device and then re-enabled it and it worked. Your 192.168.1.114 address is a DHCP address (dynamically) assigned by your router to your PC. As a result it is visible to the