Is there a Proxy server app for mac that allows me to setup a local proxy server so I can log/track which sites an iPhone app visits?
Thank you in advance!
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
Configure your Mac as an access point and sniff the traffic with TCPDump. Here are the steps:
Create Network. Give it a random name, select security, and set a password.
System Preferences > Sharingset
To computers using: Wi-Fi. In
Wi-Fi Options...choose the network you created before. In
Share your connection from:, choose the interface you are getting Internet from.
Internet Sharing, and connect to this new Wi-Fi network from your iPhone.
Settings > General > Networkand check your Internet with Safari. Sometimes it takes a few seconds.
In your Mac type
sudo tcpdump -s 0 -A -i en1 port 443 > log.txt. Use
ifconfig if you have a network interface other than en1. The log generated can be imported by WireShark (which is basically a GUI version of tcpdump), and looks like this:
TCPDump is included with all versions of OS X. For other options, see Technical Q&A QA1176 Getting a Packet Trace.