-
Notifications
You must be signed in to change notification settings - Fork 87
Configuration
Depending on how you create a wifi network, there are two different use cases. Use case 2 is my preferable way when I travel. However, it requires an additional portable wifi router.
Create a Ad-hoc wifi network from your laptop.
Connect your iPhone to this wifi network. Please do NOT set up DNS nor router on your iPhone wifi setting. Otherwise, tethering will doom to fail.
In this use case, you can only share your iPhone tethering 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 in Ad-hoc wifi network. Running "scutil --dns", I can't see DNS configuration in default resolver.
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)
Here is another step-by-step instruction written by Rand_o.
Create a wifi network from your portable router.
Connect your devices and iPhone to this wifi 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.
Here is a concrete example:
- Your portable wifi router
- IP is
192.168.2.1
.
- IP is
- Your iPhone connects to the router as access point
- wifi router IP
192.168.2.1
as gateway - IP is
192.168.2.2
. - Network mask is
255.255.255.0
. - Note that do NOT setup DNS on your iPhone.
- wifi router IP
- Your devices connects to the router as access point
- wifi router IP
192.168.2.1
as gateway. - IP is
192.168.2.3
. - Network mask is
255.255.255.0
. - DNS points to your iPhone IP
192.168.2.2
. - If you can use automatic http proxy, copy the text value of automatic proxy rows from UI, eg
http://your-iphone-name.local:8080/socks.pac
or for Windows 10http://your-iphone-name.local:8080/socks5.pac
. - If you can set socks5 proxy manually, socks5 protocol IP points to socks address from App UI (eg, iPhone IP
192.168.2.2
) and socks5 protocol port points to socks port from App UI.
- wifi router IP
For Mac users, it works perfectly with DNS and automatic or manual proxy configuration provided above. You can fall back to my customized tscoks if Mac OS X global proxy configuration doesn't socksify your application, eg ssh and etc.
For iPad users, you have to use automatic http proxy. In iPad's wifi setting -> HTTP Proxy -> Configure Proxy -> URL, enter the text value of automatic proxy rows from UI, eg http://your-iphone-name.local:8080/socks.pac
. This will make iPad retrieve socks setting file hosted in iPhone http server.
I have confirmed this use case with my portable wifi router (HooToo® TripMate HT-TM01 Wireless N150 Portable Travel Router). Mac OS X system wide socks proxy connection can make the following apps -- Safari, Mail and Evernote connect through iPhone socks5 proxy.