adb shell netstat

In this article, we shall look at the “adb shell netstat” adb command and also how to use “adb shell netstat” command, with an example.

How to use 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

If you are looking for the latest ADB Driver for Android, you can get from here: ADB Driver

Leave a Comment