Tether your unjailbroken iPhone to your desktop computer via USB for free*! This was inspired by iProxy, but I always had trouble getting the damn ad-hoc wifi network to work reliably.
Right now this is mainly proof-of-concept... but it works! It will let you create a SOCKS proxy running on your iPhone and mirror the socket to your local machine over USB via usbmuxd.
$ git clone git@github.com:chrisballinger/Tether-iOS.git
$ cd Tether-iOS
$ git submodule update --init --recursive
Open Tether.xcodeproj
and select the Tether
target and install it on your iPhone. This will start a SOCKS proxy on port 8123
on the phone, but be warned that you must keep the app in the foreground to accept new sockets. Currently the app is just a blank white screen. You can theoretically use any other SOCKS proxy app instead but I haven't tested this.
Now build the TetherMac
target and run it on your local machine. This will create a local listening socket on port 8000
that forwards everything to port 8123
on the phone over USB.
Open up Firefox and go to Preferences -> Advanced -> Network -> Manual Proxy Configuration. Important: make sure to delete the entries and ports for HTTP proxy, SSL proxy and FTP proxy or Firefox will use those instead of the SOCKS proxy settings. Enter 127.0.0.1
for SOCKS Host and 8000
for the port and make sure SOCKS v5 is selected.
Now go to about:config
in the address bar and change network.proxy.socks_remote_dns
to true
. This will make sure you resolve domain names over the SOCKS proxy instead of on your local machine.
GPLv3+