For example, in Android, the PID of a process 1234 is using ports 2222,2223,2224. Now I have a PID 1234. I was wondering how to find out port numbers 2222, 2223, 2224 which the
You can either use busybox netstat -pt or cat /proc/1234/net/tcp
busybox netstat -pt
cat /proc/1234/net/tcp