

TCPDump is included with all versions of OS X. Now all Internet traffic from your iPhone will be recorded.The log generated can also be imported by WireShark (which is a GUI version of tcpdump). Use ifconfig if you have a network interface other than en1.

In your Mac type sudo tcpdump -s 0 -A -i en1 port 443 > log.txt.Disconnect 3G on your iPhone from Settings > General > Network and check your Internet with Safari.Enable Internet Sharing, and connect to this new Wi-Fi network from your iPhone.In Share your connection from:, choose the interface you are getting Internet from, usually Ethernet. In System Preferences > Sharing set To computers using: Wi-Fi.Give it a random name, select security, and set a password. In the Wi-Fi icon of your toolbar, click Create Network.Or skip this step if you only want to sniff traffic from the app to your own computer. Connect your Mac to your router using an Ethernet cable (the Wi-Fi card will be busy working as access point).Things not (yet) part of the Wireshark User's Guide.An alternative is using your Mac as a Wi-Fi access point and sniffing the traffic with TCPDump. NetworkTroubleshooting: Information about tracking down network problemsīuildingAndInstalling: Building and Installing Wireshark (Developer’s Guide) (archived BuildingAndInstalling)ĬaptureSetup: How to setup your network to successfully capture packetsĬaptureSetup/Ethernet: Discusses capturing on switched Ethernet networksĬaptureSetup/WLAN: Frequently asked WLAN capture setup info SampleCaptures: Sample capture files for your edification and amusement HowToEdit: Information about how to edit the Wireshark wiki If you would like permission to edit this wiki, please see the editing instructions page (tl dr: send us a note with your GitLab account name or request access to the Wiki Editor group using the Gitlab feature). This is the wiki site for the Wireshark network protocol analyzer.
