How to see the traffic from a phone
Phone and computer on one Wi-Fi, a proxy in the network settings, a root certificate with full trust. Four steps, and the five things that break them.
What has to be set up
The Wi-Fi proxy sends the phone's requests through the computer; the root certificate lets it decrypt them. Without the proxy you see nothing; without the certificate, connections that open and die.
How to do it
Step 1. One Wi-Fi network, not a guest one (client isolation).
Step 2. Find the computer's address.
# macOS — Wi-Fi is usually en0; try en1 if this prints nothing
ipconfig getifaddr en0
# Linux
ip route get 1.1.1.1 | awk '{print $7}'
# Windows
ipconfig | findstr IPv4
You want a private address (RFC 1918 § 3):
192.168.x.x, 10.x.x.x, 172.16–31.x.x.
Step 3. Set the proxy on the phone. Address from step 2, proxy port
(Solpuga: 7070), authentication off.
iOS: Settings → Wi-Fi → ⓘ next to the network → Configure Proxy → Manual.
Android: Settings → Network & internet → Internet → gear next to the network → pencil → Advanced options → Proxy → Manual. Older Android: long-press the network → Modify network.
Check: open any http:// page on the phone. If it does not load, the
computer's firewall is usually blocking the port.
Step 4. Install the certificate. It is served through the proxy, so step 3 comes first. In Solpuga's SSL Certificate menu the iOS and Android device wizards show a QR code; the iOS one also sends the profile over AirDrop.
iOS needs two more steps. Install the profile: Settings → General → VPN & Device Management → the profile under Downloaded Profile → Install. Turn on full trust: Settings → General → About → Certificate Trust Settings. Details.
Android puts the certificate in the user store. Chrome trusts it; apps that
target Android 7 (API 24) or later ignore it unless their
network_security_config allows user certificates.
Details.
What usually gets in the way
A firewall on the computer. Windows blocks incoming connections by default; macOS does once its firewall or a security tool is on.
A VPN on the phone. It takes the traffic past the Wi-Fi proxy. Turn it off.
iCloud Private Relay on iOS. Safari's traffic goes around the proxy. Per network: Settings → Wi-Fi → ⓘ → turn off Limit IP Address Tracking. Globally: Settings → your name → iCloud → Private Relay.
An app that pins. No certificate works. On the bypass list its traffic is recorded but not readable; reading it needs a build without pinning (SSL pinning).
QUIC and HTTP/3. A Wi-Fi proxy covers TCP only;
QUIC over UDP goes past it. In
Chrome, disable chrome://flags/#enable-quic; for other apps, block outbound
UDP 443 on the router.
Not a blocker: DNS over HTTPS (RFC 8484)
adds connections to dns.google or cloudflare-dns.com
that are not app traffic.
See it on your own traffic
With all four steps done, every request shows up in full. The browser on the computer complains about the certificate: ERR_CERT_AUTHORITY_INVALID. Android system vs. user store, ADB notes for Linux and Windows: Mobile Devices.
Related
- iOS: profile installed, certificate not trustedOn iOS a root certificate takes two steps. The second one is under About.
- Android does not trust the proxy certificateApps built for Android 7+ ignore user-installed CAs. How to allow them in a debug build with network_security_config, and what it will not fix.
- ERR_CERT_AUTHORITY_INVALID through a proxy — how to fix itChrome does not trust the proxy's root certificate. Where to install it on macOS, Windows and Linux, and which browsers and tools ignore the system store.