Android java.net.SocketException:socket failed: EACCES (Permission denied)
Try adding the following:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
try to add the following permission :
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />