I installed Charles Proxy to do some testing, later I disocvered that any traffic going through Personal Hotspot is also routed though to a local port. I've remove the Mac OS X proxy settings, but unless I have Charles open, I cannot connect over HTTP.

I have checked System Preferences > Network and there's no trace of any proxy settings. Can I use any command line tools to list and remove proxies?

1 Answer 1


Old question but for anyone else that hits this problem:

Within Terminal.app issue the command:

networksetup  -setwebproxystate iPhone\ USB off

Afterwards, you can check that is disabled by using:

networksetup -getwebproxy iPhone\ USB

This should return Enabled: No Server: Port: 8888

  • Can then check that is disabled by using $ networksetup -getwebproxy iPhone\ USB Should result in Enabled: No Server: Port: 8888
    – andywirv
    Commented Dec 6, 2013 at 10:43
  • Thanks, this saved me! You may want to add networksetup -setsocksfirewallproxystate iPhone\ USB off which will also disable a SOCKS proxy if it's setup Commented Jan 10, 2018 at 21:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .