Skip to content Skip to sidebar Skip to footer

Exception In Connecting Android Tcp-client To Java Tcp-server

I wrote code for tcp-server in java, and tested with tcp-client in java and it worked well, but when I have written a tcp-server in android, I got this exception : 09-06 15:15:37.7

Solution 1:

127.0.0.1 is try connect to your emulator, replace 127.0.0.1 by your computer ip. For example: 192.168.1.10

Solution 2:

Perhaps missing INTERNET permission?

Solution 3:

If there is permission problem or permission denied, then open AndroidManifest.xml file and add

<uses-permissionandroid:name="android.permission.INTERNET">

Post a Comment for "Exception In Connecting Android Tcp-client To Java Tcp-server"