I created a ServerSocket
that listens to port 9000
in my app, and I want to telnet to that port. It works on my rooted test device, but I need it to work on non-rooted devices, which it doesn't seem to do. I need to know if this only works on rooted devices, or if it should work on unrooted droids as well, implying that I just made a mistake in my code.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
It should work on any device, rooted or otherwise. As long as you aren't actually trying to access a privileged port (< 1024 if I recall correctly) or trying to use a port that's already in use.