TechBuzzPro

Wireshark on Android: How to Capture Packets

· 6 min read · Phones & Tablets

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can use Wireshark on Android, but not by installing Wireshark itself on the phone. Wireshark is a desktop application. The practical method is to capture traffic on the Android device with an app that writes a PCAP file, then open that file in Wireshark on a computer. Android does not allow a normal app to capture all network traffic without extra setup, so most captures are limited to the app's own traffic or require a rooted device and a helper binary. The steps below use the official, non-root route: capture with a Play Store app, transfer the file, and analyse it in Wireshark on Windows, macOS or Linux.

What You'll Need

  • An Android phone or tablet running a recent Android version.
  • A packet capture app from the official Google Play Store. Common choices include PCAPdroid and tPacketCapture. Both write standard PCAP files that Wireshark can open.
  • A computer with Wireshark installed from the official wireshark.org download page.
  • A way to move the capture file from the phone to the computer: a USB cable, cloud storage, or email to yourself.
  • Optional: a Wi-Fi network you control, if you want to capture traffic from other devices on the same network. This usually requires the app's VPN capture mode and, on some apps, a rooted phone.

Step-by-Step

  1. Install a capture app on the Android device. Open the Google Play Store, search for PCAPdroid or tPacketCapture, and install one of them. Avoid APK files from random websites; only install from the Play Store.
  2. Open the app and grant the permissions it asks for. A capture app normally needs to set up a local VPN connection so it can see traffic. Android will show a VPN connection warning; accept it. The app is not sending your traffic to a remote server in this mode, it is routing it locally so it can record it. Labels and permission prompts can differ slightly by app version and Android version.
  3. Start the capture. In PCAPdroid, tap the start button on the main screen. In tPacketCapture, tap the capture start control. The app will show a notification while it is recording. Leave it running while you reproduce the problem or perform the action you want to inspect.
  4. Use the app or website you want to capture. Open the browser, game, or messaging app and do the thing that generates the traffic. Keep the capture short, a minute or two is usually enough and keeps the file small.
  5. Stop the capture. Return to the capture app and stop recording. The app will save a .pcap or .pcapng file, usually in its own folder or in Downloads.
  6. Find the file. Use the app's own file list, or open the Files app on Android and look in Downloads or the app's folder. Note the exact file name.
  7. Transfer the file to your computer. Connect the phone by USB and set the connection to file transfer, then copy the file. Or upload it to cloud storage and download it on the computer. Email works for small files.
  8. Open the file in Wireshark. Launch Wireshark on the computer, choose File > Open, and select the PCAP file. The packet list will populate. If Wireshark asks about a profile or shows a colouring warning, accept the defaults.
  9. Filter the traffic. Use the display filter bar to narrow things down. For example, type http to see unencrypted web requests, dns to see name lookups, or ip.addr == 192.168.1.10 to focus on one address. Press Enter to apply the filter.
  10. Follow a stream if needed. Right-click a packet and choose Follow > TCP Stream or Follow > UDP Stream to see the full conversation in a readable window. This is the quickest way to read a plain HTTP request or a DNS query and response.

Common Mistakes

  • Expecting to see all traffic without root. A non-root capture app normally sees only traffic that passes through its local VPN. Some system and other-app traffic may not appear. This is a limitation of Android, not a bug in Wireshark.
  • Capturing for too long. Long captures produce huge files that are slow to open and hard to read. Capture only the action you need.
  • Forgetting to stop the capture. If you close the app without stopping, the file may be incomplete or missing. Always stop recording first.
  • Looking for HTTPS contents in plain text. Modern apps use TLS. Wireshark will show encrypted data, not readable requests, unless you have the app's keys, which is not practical for most apps. Use the capture to see connection endpoints and timing, not message contents.
  • Using an old or unofficial APK. Only install capture apps from the Play Store, and only install Wireshark from wireshark.org.

Tips

  • Capture on Wi-Fi rather than mobile data when possible; it is easier to reason about and avoids using your data allowance.
  • Name the capture file with the date and the app you were testing, so you can find it later.
  • Use the display filter dns first. DNS queries are rarely encrypted and quickly show which domains an app contacts.
  • If you need to capture other devices on your network, check whether your capture app offers a gateway or hotspot mode. Not all apps do, and some features require root.
  • Keep the phone screen on during capture if the app stops recording when the screen locks.

Troubleshooting

  • The capture app shows no packets. Stop and restart the capture, and confirm the VPN permission is still granted. Some Android versions drop the VPN when battery saver kicks in; disable battery optimisation for the capture app.
  • Wireshark says the file is not a capture file. The app may have saved a text log instead of a PCAP. Check the file extension and use the app's export option to save as PCAP or PCAPNG.
  • The file opens but is empty. The capture was started after the action, or the app could not see that traffic. Start the capture first, then perform the action.
  • Wireshark is slow or crashes. The file is probably very large. Capture a shorter session, or use editcap from the Wireshark tools to split the file.
  • You cannot find the file on the phone. Open the capture app's settings and look for the save location, then browse to that folder with the Files app.

Frequently Asked Questions

Can I run Wireshark directly on Android?

No. Wireshark is a desktop application for Windows, macOS and Linux. On Android you use a separate capture app that writes a PCAP file, then open that file in Wireshark on a computer.

Do I need to root my phone?

Not for the method above. A non-root capture app records traffic through a local VPN. Root is only needed for capturing all traffic on the device or other devices on the network, which is outside normal app permissions.

Can I see HTTPS traffic in Wireshark?

Not in readable form. HTTPS is encrypted, so Wireshark shows the connection endpoints and timing but not the request contents. Decrypting requires keys you normally do not have.

Is it legal to capture my own phone's traffic?

Capturing traffic on a device you own and a network you control is generally fine. Capturing other people's traffic without permission can be illegal depending on where you live. Only capture what you are authorised to capture.

Which capture app should I use?

PCAPdroid and tPacketCapture are both available on the Play Store and produce files Wireshark can open. Pick one, install it from the Play Store, and follow its own start and stop controls.

Why does Wireshark show so many packets I do not recognise?

Phones constantly talk to background services. Use display filters such as dns or ip.addr to focus on the traffic you care about, and keep captures short.