adb shell netstat

Display networking information.

Default is netstat -tuwx

adb shell netstat

Routing table

adb shell netstat -r

All sockets (not just connected)

adb shell netstat -a

Listening server sockets

adb shell netstat -l

TCP sockets

adb shell netstat -t

UDP sockets

adb shell netstat -u

Raw sockets

adb shell netstat -w

Unix sockets

adb shell netstat -x

Extended info

adb shell netstat -e

Don't resolve names

adb shell netstat -n

Wide display

adb shell netstat -w

Show PID/program name of sockets

adb shell netstat -p