Open the terminal app on your Android device. Type the netstat -tulpn command and press Enter. The command will display a list of all the listening ports on your Android device and the corresponding processes using them.