Share internet over Wifi using HTC Magic.
Note: This guide was based on a HTC Magic with the unoffical Hero ROM, but should be the same thing on an "normal" HTC Magic with the "usual" Cupcake ROM. HTC Dream aka. G1 or DevPhone already has a kernel with Iptables so this guide wont be necassary on that device.
The guide is also meant using a computer installed with Ubuntu, but shouldn't ither be impossible to use with another dist. (or OS). The main thing on the actual computer is support for ad-hoc-networking and able to set proxy-settings.
One other thing is that if ad-hoc was supported out-of-the-box on Android, we wouldn't have to use the Wifi-tethering application.
Set up your Android-phne:
Begin with installing 'Proxoid' from Android Market and Wifi-Tethering from here: http://code.google.com/p/android-wifi-tether/
We need the Wifi Tethering to create a ad-hoc network between the phone and the laptop. Proxoid is a HTTP-Proxyserver, which will handle the actual internet.
Set up your laptop:
- Open your Proxysettings. Open 'System>Settings>Networkproxyserver'.
- Create a new place and call it whatever you want. Then set it to manual config of proxy and also choose to use the same proxy for every protocoll.
- Now set the HTTP-proxyserver to 192.168.2.254 (the default IP for the Wifi-tethering network).
Go online:
- Start Wifi-Tethering on your phone.
- Connect to your ad-hoc system on your laptop.
- Start Proxoid on your phone.
Now you should be online!
Hope that this help - I love it!
EDIT: Since I posted this, I got a few errors and didn't got it to work since I did it like this:
- Connect your phone to the computer using the USB-cable. (Debugging mode on!)
- Start the proxy and Wifi tether. Then connect to the ad-hoc-network.
- You will have to have the Android SDK installed and the "adb"-file in the tools dir. Change dir to this dir.
- Run;
$ sudo ./adb forward tcp:8080 tcp:8080 - Open the proxysettings and change it as above, with the phones IP as the SOCKS server.
- Now enjoy the connection to internet.








Lägg till ny kommentar