Search code examples
javaandroidserversocket

android serverSocket initialisation causing permission denied exception in service(remote)


I am trying to create a socket with a hardcoded IP address and socket in a remote process:

server = new ServerSocket(80);

and I am getting a permission denied exception even though I have added the INTERNET permission in the manifest file.

What could be possibly wrong in this?


Solution

  • Perhaps this question may help: