How to see network packets in Android?

2019-08-05 05:27发布

问题:

I am looking to see when and which apps are accessing the network from my Android Phone. I am looking for something like Wireshark but for Android. I found Shark for Root but it requires a rooted phone, I dont have one.

Is there a way to see the network traffic from each app?

回答1:

You cannot monitor your own network on the android phone without root, but here is how you can do it on a computer (doesn't require root)

If you are on a windows PC, try the following:

  1. Install fiddler2
  2. Open and go to Tools > Fiddler Options > Connections > check Allow Remote computers to connect
  3. Optional - uncheck act as system proxy on startup (to prevent you from getting traffic from your pc)
  4. Restart fiddler
  5. Go to wifi settings > touch your connected wifi network for 4 seconds > choose modify network config > show advanced options > Proxy > Manual > hostname > YOURCOMPUTER NAME OR IP > Proxy port > 8888 (or what you set it to in fiddler2)
  6. Enjoy

P.S. If you are on MAC there is charles, if you are on another O.S. you can search for "fiddler2 OS_NAME alternative"