Access internet from PC via PDA's WiFi - proof of concept
Monday, February 11, 2008 3:58:09 PM
The connection sharing is done by two programs: WMTunnel and SerialTunnel. WMTunnel runs on the PDA and connects to the internet. SerialTunnel runs on a PC and acts as a "gateway" by accepting connections from your web browser and forwarding them to WMTunnel. Both are connected to each other via serial line (real COM port or Bluetooth SPP).
1. How To Use
1. How To Use
To better understand the concept, shoot a glance at the following example:
- create an incoming serial port (Device)
- start WMTunnel (Device)
- setup and configure Bluetooth Serial Port (PC)
- start and configure SerialTunnel (PC)
- configure web browser (PC)
In this example i will use Bluetooth Serial Port Profile to connect the device to the PC. First create an Incoming serial port on device. (Start / Settings / Connections / Bluetooth / Com ports / New incoming port. Select an available item (COM0) and tap Finish.)
Then on the PC, open the Bluetooth software and start a Serial Port service. (I used Bluesoleil)
After that, pair the devices.
Now it’s time to run WMTunnel. Select the previously created incoming serial port. Tap START button.
On the PC, if needed, connect to the device’s serial port. (I don’t know how other softwares work, but in Bluesoleil you first discover the PDA’s services, then right click on the highlighted serial port service icon and choose connect). I think, that time, the Bluetooth software will tell you, which local port you may use. (I got COM5)
Install, and start SerialTunnel (PC), select the Bluetooth serial port (given by the Bluetooth software, /COM5 for me/). Click Connect.
Check that device's WiFi is turned on.
To test if the serial connection was established flawlessly, switch to DNS tab, type your favourite hostname (google.com) in the textfield. Click Resolve. If you get one or more IP address, then everything is fine.
At this point, you have to define some port forwarding rules. These rules are called SERVICES in SerialTunnel.
To access the web, you will need a public proxy server. (ISPs often provide HTTP proxy. My ISP is externet, the proxy is at pr0xy.externet.hu on port 3128.)
Let’s switch to Services tab in SerialTunnel, click Add, then enter an arbitrary name for the service. Set source port to 8008, select „Local” radio button, fill the destination fields with the proxy’s IP and port number. Click OK.
Shortly you’ll see that a new line appeared in the list. Your PC is now listening on port 8008. All traffic, that goes to 8008 are forwarded to the given proxy server.
Before you start browsing, set up your browser to use a proxy server. At the browser’s proxy settings, set proxy host to 127.0.0.1 and 8008 as port. (IE7: Tools-> internet options -> connections -> lan settings -> check: „Use a proxy server”. But do not check the other checkbox!)
At last, you may start browsing.
(But don’t forget to uncheck „Use a proxy server”, when you don’t want to use SerialTunnel.)
2. Download the latest version
WMTunnel_SP.zip for Smartphones (devices without touchscreen)
3. Frequently Asked Questions
4. Discuss here
5. Contact me
e-mai|: znos at freemail dot hu