

This shows you your current network interfaces.

Plug your iOS device into your Mac and run the following in Terminal: ifconfig -l All you need is Xcode, Wireshark a Mac and a lightning cable. Answer found! You can actually use your iOS networking stack as a Remote Virtual Interface (RVI) which will allow you to capture every TCP packet your device hears. I was finding myself frustrated with why iOS couldn’t do the same so I started digging in the Developer Docs for an answer. I mainly work with Apple and iOS devices so for me this can be a nightmare! Mac’s are great thanks to the built-in capabilities of the OS. This will also give you the data that goes over cellular - Great for troubleshooting cellular handoff - if you wanted it. Sure, you could put your favourite packet capture device right next to the device and filter stuff out but sometimes you want to know exactly what the device is trying to reach or do. Tip: you can always use filter in Wireshark to just display the packets you want to see.Every now and then you need to find out what a client is trying to do. You should use your own screenshot.ĭo you see any parallel connections your browser makes? If so, how many can you see in your screenshot? Again, use Wireshark to capture the traffic while you open up the page.Įxample screenshot below. Now, we will open a webpage with embeded objects (e.g., cnn.com which has a lot of images/videos embeded) in a browser. Example screenshot below.ĭescribe the TCP packets that you see, i.e., how each packet corresponds to TCP handshake, data transfer and closing connection steps. The interface needs to be manually brought up/down to enable/disable packet capture for. After the curl/wget is done, stop the capture in Wireshark. With macOS High Sierra you can use Wireshark to capture USB traffic. Video learning.This video will show you how to install Wireshark on Mac OS.Please like and subscribe my video. Warning: keep your other network activities to the minimum for a better experience, e.g., avoid streaming Netflix when capturing in Wireshark.

Then you should be able to see packets flowing! Click the red square button on top to stop the capture. On the left side, select one (or more) interfaces that you want to capture from, then click “Start”. If you run into any problems, you can refer to for more detailed help. On Mac and Linux, you can also install from command line (homebrew/macports, yum install, apt-get install). You can find installation instructions here: We will use Wireshark, a network packet capture tool, to look at TCP packets when grabbing a webpage.
