Skip to content
Ricky Zhang edited this page Jan 18, 2016 · 18 revisions

Depending on how you create a wifi network, there are two different use cases. Use case 2 is a perfect way for Macbook air. However, it requires an additional portable wifi router.

Use case 1

Create Ad-hoc wifi network from your laptop.

Connect your iPhone to this wifi network. Please don't set up DNS or router in your iPhone wifi setting. Otherwise, tethering will doom to fail.

In this use case, you can only share your iPhone proxy with only one device.

For Mac users, I have confirmed in Mavericks that system wide default proxy configuration didn't work properly. This is due to DNS configuration when creating Ad-hoc wifi network. Running "scutil --dns", I can't see DNS configuration in default resolver. I haven't figure out the workaround, although I try to add global DNS key. Please shoot me an email if you have any clue.

Although system wide proxy failed, you are still able to use Firefox and Chrome for web browse by setting up socks proxy individually. For configuration details, please refer to Outstanding issues & Workaround.

For other network application using BSD POSIX socket API, you are able to use tsocks to socksify application. I have added my additional patch to tsocks in my another github [tsocks project] (https://github.com/rickyzhang82/tsocks_dnsdirect)

Use case 2

Create wifi network from your portable router.

Connect your devices and iPhone to this network. You will use your iPhone as proxy and DNS server.

In this use case, you can share your iPhone LTE connections to many devices.

For Mac users, set up your DNS server points to iPhone. It works perfectly with DNS and default proxy configuration provided by Mavericks. You can always fall back to tscoks if Mavericks doesn't socksify your application.

For iPad users, set up your DNS server points to iPhone. In iPad wifi setting, enter socks.pac url==> http://iphone_ip:8080/socks.pac This will make iPad retrieve socks5 setting hosted in iPhone http server.

I have confirmed this use case with portable wifi router (HooToo® TripMate HT-TM01 Wireless N150 Portable Travel Router). Mavericks system wide socks proxy connection can make the following apps: Safari, Mail and Evernote connect through iPhone socks5 proxy.

Clone this wiki locally