Java socket IOException - permission denied

后端 未结 2 2017
情话喂你
情话喂你 2020-12-01 14:05

i am trying to connect to a server on my network running a tcp listener using the following java code. I am getting am IOException - Permission Denied. It is from an android

相关标签:
2条回答
  • 2020-12-01 14:18

    Yea, like Morrison said above, you probably need to put this permission to your manifest file.

    <uses-permission android:name="android.permission.INTERNET" />
    
    0 讨论(0)
  • 2020-12-01 14:28

    There may be two reason either you have't put this line of code in android.manifest

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

    or it may be due to the Firewall setting. It may be possible that your eclipse have been blocked by Firewall to communicate through network.

    0 讨论(0)
提交回复
热议问题