Can I share the Internet connection on my Pocket PC through Bluetooth/Wi-Fi? That is, can I make my Internet-connected Pocket PC

http://smartphonemag.com/forum/topic.asp?TOPIC_ID=20351

Q: Can I share the Internet connection on my Pocket PC through Bluetooth/peer-to-peer (P2P) Wi-Fi? That is, can I make my Internet-connected Pocket PC into some kind of a Wi-Fi/Bluetooth Access Point? A: This is a very common question (see for example this, this, this and this threads) and, therefore, worth dedicating a blog entry to it - particularly because, as to now, noone has ever presented a really working proxy solution for sharing the network connection on a Pocket PC (before this tutorial, that is). What's the point in all this, you may ask. Well, it's pretty simple. Let's assume you have two Pocket PC's. One of them is connected to the Internet via, say, Wi-Fi, the ActiveSync Internet pass-through or Bluetooth (say, via GPRS) and, say, your wife/husband/kids/friend is chatting via MSN Messenger or some IRC application on it. You would, however, like to connect to the Internet via the other Pocket PC('s) to browse the Web, using the same Internet connection. You can certainly do this! (Incidentally, this is a very common case in my family. My wife likes chatting via MSN Messenger and, at home, we only have Pocket PC's and GPRS connection (no external Wi-Fi access points, no cable/ADSL connections, nothing) via my mobile phone. The Pocket PC, an iPAQ 2210, she uses for MSN Messenger chat, connects directly to the Net (via BT GPRS) and also shares its HTTP Internet connection by running a HTTP proxy server. This is the HTTP proxy server that I connect to from the other Pocket PC, a VGA Pocket Loox 720, via a Bluetooth Personal Area Network built up between the two Pocket PC's. This way, we can access the Internet using the same GPRS connection at the same time, from the two Pocket PC's, without using any kind of external PC's or other tricks. That is, this solution works beatifully for Internet sharing in my practice.) To share an Internet connection, you'd need operating system-level support for connection sharing as is present in, say, the desktop Windows. It's what is really missing from the Windows Mobile operating system. Fortunately, there're some tricks you can do to be able to access at least the Web from the client machines if you use a HTTP proxy run on the Pocket PC that shares its Internet connection. Note that you won't be able to access anything else: no MSN Messenger, no POP3/SMTP/IMAP e-mail, no multiplayer, TCP/IP and GPRS-friendly games etc. on the "client" Pocket PC's (on the "server" Pocket PC, of course, you can run any Internet client application.). Still, being able to access the Web on the "clients" is a great thing. Your choices are as follows:
  1. use PocketPCProxy as described here. I really don't recommend this proxy server because it doesn't even support POST requests – therefore, you won't be able to fill in (send) HTML forms to, for example, send posts/log in to anywhere (unless you have previously logged in on the same Pocket PC and the login cookie is still valid.)
  2. wait until the Toonel folks allow for non-local incoming connections in their great tool. Unfortunately, due to (for security reasons, understandable) access restrictions, it's not feasible now.
  3. use my HTTP proxy server (more about this later)
As long as Toonel has no support to be used as a proxy server run on an access point, I recommend my free, open-source, POST-capable and, compared to the above-mentioned PocketPCProxy, much more advanced HTTP proxy server available for download here (its sources are also available here if interested) instead. Just get the HTTPSnoopProxy.class file, copy it to, say, the root of your "access point" Pocket PC and get a decent Java Virtual Machine (I recommend CrEme 4.00 because of its superior speed, reliability and moderate memory consumption). Install CrEme on the device that you would like to act as the Bluetooth Access Point. Then, on the same PDA, write a link file that invokes CrEme on HTTPSnoopProxy.class. The link file will be, assuming you install CrEme in the main memory, as follows: 255#"\Windows\creme\bin\CrEme.exe" -Ob -classpath \ HTTPSnoopProxy 8080 To make your life easier, I've uploaded an example file here – you only need to put it in, say, \Windows\Start Menu\Programs so that it's easily accessible. It, again, assumes that CrEme 4.00 is installed into main memory and HTTPSnoopProxy.class is copied to the root directory of your PDA. If not, you must modify either the path to CrEme.exe or the parameter of -classpath. Then, just set up a Bluetooth PAN network and find out the IP address of the "server" (the "Access point") PDA as described in my BT PAN tutorial. You will need to feed this IP address as the proxy address to either your Web browser (if it's proxy-capable; that is, it's either Minimo or NetFront) or to the Connectivity framework (if you plan to use Pocket Internet Explorer) on all the Pocket PC clients that you would like to connect to your BT "access point". Please consult the tutorial here (the "Configure Your Web Browser to Use The Toonel HTTP Proxy" section in my Toonel tutorial) on how this must be done. Please note that, instead of the localhost IP 127.0.0.1, you will need to enter the address of your actual BT access point here – that's what you've already found based on the above-linked BT PAN tutorial. The port number of the proxy is 8080; you can easily change it by changing the '8080' parameter passed to HTTPSnoopProxy in the link file. That's all – you can start browing the Web right away from the clients; and, you will also have POST support! Please let me know if you, for example, need compatibility info / example link files for other JVM's too. Also, make sure you ask your questions if you run into problems. EDIT (Feb-2-2006): I've been told by the Toonel staff that the localhost restriction of Toonel is only left out in the commercial (the license fee is about $60/year) clients. That is, there won't be a working, Toonel-based, free solution. This means you will need to stick to my proxy server. ADDITION (Feb-26-2006): Here, I've elaborated on the new networking model of Windows Mobile 5 devices. It's completely different from that of previous Windows Mobile versions and makes it possible to use an USB/ActiveSync-based PDA to share its Internet connection to the desktop computer it's connected to.
Werner Ruotsalainen's picture

Nope, it's HTTP only and MSN Messenger uses an entirely different, native protocol.

Werner Ruotsalainen's picture

Gregory, you can use Wi-Fi to share your internet connection. Please read this article.

Werner Ruotsalainen's picture

Yes, you will be able - at least to access the Web. Make sure you run CrEme on your 6700 though - it's the only 100% WM5-compliant JVM right now.

Werner Ruotsalainen's picture

Nope, you won't play games.

Werner Ruotsalainen's picture

Do you run my HTTP proxy server on the EVDO-connected PDA? If yes, can you connect to the Web through it from the LOCAL PPC?

It's only by using my HTTP proxy server that you can share an Internet connection on a Pocket PC - the operting system itself doesn't do the same, as opposed to desktop Windows operating systems.

Werner Ruotsalainen's picture

John, nope, unfortunately. It's HTTP-only, looks for well-formed HTTP requests and responses on TCP ports. That is, it can't work with any other protocol.

Werner Ruotsalainen's picture

Unfortunately, it's highly unlikely Windows Mobile will ever support this functionality out-of-the-box, however much I try to push this issue inside Microsoft.

There are no third-party products for this either, unfortunately.

Werner Ruotsalainen's picture

That is, you want to use your PDA as a GPRS modem for your laptop?

Werner Ruotsalainen's picture

Just change the

requestHeaders.add(line);

line to

requestHeaders.addElement(line);

Then, it'll compile just fine.

Hi Werner, First, thanks for

Hi Werner,

First, thanks for all the great info - it's most appreciated.

I have an HTC TYTNII and an HTC Advantager X7500.  Both are great devices, but the screen on the TYTNII is too small for my old eyes and the X7500 isn't a viable phone.  Rather than sitching SIM cards, I would like to access the internet and email on the 7500 usine the TYTNII as a "host".  I read your article on setting up a WIFI conenection between two PDA's, got them to connect to each other but I can't make the internet connection from the 7500.  I get the message "answering modem has disconnected".  Did I miss something, do I need to set up a special connection in "connection settings"?  I'll appreciate any additional help.

Can this be done with a bluetooth or cable connection?

Thanks again.

 

Question: How can I share my

Question: How can I share my internet connection from my windows vista laptop to my pocket Pc windows mobile 6?

Looking forward to the anwer! Thanks 

 

Hi all, I am wondering if

Hi all,

I am wondering if this software/proceedure will also work for PC -> PPC USB connection with Enhanced Network Functionality set up on the USB connection and the PPC set as the gateway on the PC.

Also, does the software detect Routes or Port Forwarding that the PC would have set up running throught the connection?

One more thing, does anyone know how I can increase the WiFis Signal Strength via the software beyond what the PPC standard WiFi sofware allows it to be set to? (Power consumption doesn't matter because it will be plugged into a PC).

Can anyone also tell me why the Wireless Modem software that comes with WM5 will not act as a wireless modem and connect to the desired WAP?

I know this is a lot of questions, and I apologise, but I have been trying to get this working for a week now so I can earn money easier instead of having to wander closer to the HotSpot with my Mobile so I can email those that are employing me.

Any assistance is greatly appreciated.

Sincerely,
Andrew.

Syndicate content