简体   繁体   English

android serverSocket初始化导致服务中的权限被拒绝异常(远程)

[英]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: 我试图在远程进程中创建一个带有硬编码IP地址和套接字的套接字:

server = new ServerSocket(80);

and I am getting a permission denied exception even though I have added the INTERNET permission in the manifest file. 即使我在清单文件中添加了INTERNET权限,我也会收到权限被拒绝的异常。

What could be possibly wrong in this? 这有什么可能是错的?

Perhaps this question may help: 也许这个问题可能有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM