-
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 when creating 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
Your iPhone connects to the router as access point thus,
- wifi router IP as gateway
- IP is 192.168.2.2
- Network mask is 255.255.255.0.
- Note that do NOT setup DNS on your iPhone.
Your devices connects to the router as access point thus,
- wifi router IP 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 socks5, socks5 protocol IP points to your iPhone
- If you can use socks5, socks5 protocol port points to the port listed on App
For Mac users, it works perfectly with DNS and default proxy configuration provided. You can always fall back to tscoks if Mac OS X doesn't socksify your application.
For iPad users, you may not be able to specify socks5 protocol. Thus, 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 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.