Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Using Wireshark, I need to sniff some traffic on my mobile device. I've set up my Mac to share my Ethernet connection to computers using Wi-Fi, and then I set my mobile device to connect to that wifi.

Now, I want to proxy all the of the requests from the mobile device and watch the traffic from there. I cannot set a proxy on the device. There's no interface to do it unless I root it, which I don't really want to do (yeah, tell me about it). So, I need to set the proxy on the shared internet.

The thing is, I set the proxy on my wi-fi network, but I'm not seeing the traffic go through the proxy. If I set the proxy on my ethernet, I don't see the mobile device's traffic go through the proxy; all I see is my host computer's traffic.

So how do I set up a proxy on my shared internet connection?

share|improve this question
    
I'm not entirely clear on what you're doing, and trying to do. First, if all you need to do is sniff traffic, why are you bothering with a proxy? Wireshark can simply capture the packets as they go by. Second, if you do need a proxy, please explain what you're doing in more detail (especially, what proxy software are you using, and how do you have it set up). –  Gordon Davisson May 21 '13 at 20:21
    
You can set up a web proxy on OSX in System Preferences > Network > choose your network > Advanced > Proxies –  Jeremy Detrempe May 24 '13 at 18:43
    
That setting tells software running on your Mac (e.g. Safari) to use the configured proxy (when connecting to the Internet via Wi-Fi), but does nothing at all to traffic being routed through your computer. Again, please clarify what your goal is here. What do you actually need to do with the traffic from your mobile device? –  Gordon Davisson May 25 '13 at 1:31
    
I'm trying to troubleshoot my apps that are running on Android. It's running a bunch of different ad networks' SDKs, so I want to find out what they're doing, if anything. But the Androids I have won't allow a proxy unless you root the phone, which might invalidate the test. –  Jeremy Detrempe May 28 '13 at 4:25
    
Do you need to spy on SSL (HTTPS), or just plain HTTP? Do you need to interfere actively with the connection, or just watch what's being sent & received? –  Gordon Davisson May 28 '13 at 4:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.