例如,在Android中,进程1234的PID使用端口2222,2223,2224.现在我有一个PID 1234.我想知道如何找到进程正在使用的端口号2222,2223,2224?
我尝试过使用netstat -anp就像在Linux中一样,但是没有用.ADB shell中的netstat -anp与netstat具有相同的效果,netstat没有任何命令参数.
linux port android netstat adb
adb ×1
android ×1
linux ×1
netstat ×1
port ×1