

When we run only UDP through Iperf we can see both source and destination ports are used from registered/public ports.ĥ. Now we put “tcp.port = 443” as Wireshark filter and see only HTTPS packets. Now we put “udp.port = 53” as Wireshark filter and see only packets where port is 53.ģ. Here 192.168.1.6 is trying to send DNS query.

Now we put “tcp.port = 80” as Wireshark filter and see only packets where port is 80.Ģ. Here 192.168.1.6 is trying to access web server where HTTP server is running.

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).An alternative is using your Mac as a Wi-Fi access point and sniffing the traffic with TCPDump.
