Go Back   xda-developers > General discussion > General


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27th September 2007, 04:39 PM
Menneisyys Menneisyys is offline
Moderator
 
Join Date: Jul 2005
Posts: 5,316
Default Another long-awaited breakthrough: dial-up Internet Sharing over Wi-Fi!

Anyone having read my tutorial on the new Internet Sharing utility in Windows Mobile 5 AKU3 and later versions (including, of course, WM6) knows that it’s not possible to use a Windows Mobile device as a GPRS / EDGE / UMTS / HSDPA etc. cellular modem via Wi-Fi, Bluetooth DUN or, with some exceptions, even infrared, “only” over BT PAN and USB. This means a lot of devices can’t connect to the Net if they don’t support either BT PAN (or USB with desktop Windows operating systems). While the BT DUN hack published some months ago certainly helped the situation (allowing for connections via the far more widely supported, “traditional” Bluetooth DUN), it still didn’t let for using the Windows Mobile Phone Edition (“Professional” in WM6 parlance) device as a modem with clients connecting via Wi-Fi.

XDA-Developers hacker fluxist has just published a tutorial on his latest finding, which, at last, allows for accessing the Net using a Windows Mobile device via Wi-Fi.

I've thoroughly expanded (also with screenshots) the tutorial and tested it with some other Pocket PC's. The results are as follows:
  1. Start Programs / Internet Sharing. Enable the sharing for Bluetooth PAN (NOT USB!) using Connect (left softkey). If you’re prompted for enabling Bluetooth visibility, close the dialog box as usual by pressing OK.
  2. Start editing the Registry with a registry editor and change HKLM\Comm\ ConnectionSharing\ PrivateInterface (which is, by default, "BTPAN1") to the internal name of your Wi-Fi adapter. It’s "TIACXWLN1" with most models.

    If it’s not the case (for example, with the HTC Wizard, which uses TNETWLN1 instead), make sure you search for the same string in the Registry as in Settings / Connections / Wi-Fi. For example, it’s “SDIO WLAN Wireless Adapter” on the Wizard and “tiacxwln Compatible Wireless Ethernet” on the Universal. Search for this string; the second occurrence (it’s slightly different from the first: first, it has a suffix “1” after the registry key name and also has a "Wireless" value) will be something like this:

    On the Wizard:

    [HKEY_LOCAL_MACHINE\Comm\TNETWLN1]
    "DisplayName"="SDIO WLAN Wireless Adapter"
    "Group"="NDIS"
    "ImagePath"="tnetwln.dll"
    "Wireless"=dword:00000001


    On the Universal:

    [HKEY_LOCAL_MACHINE\Comm\tiacxwln1]
    "DisplayName"="tiacxwln Compatible Wireless Ethernet Driver"
    "Group"="NDIS"
    "ImagePath"="tiacxwln.dll"
    "Wireless"=dword:00000001


    Here, all you need to do is looking up the name of the subkey, which is [HKEY_LOCAL_MACHINE\Comm\TNETWLN1] with the first and [HKEY_LOCAL_MACHINE\Comm\tiacxwln1] with the second case. Of this, you’ll only need the last subkey name component; that is, TNETWLN1 and tiacxwln1, respectively.

    Note that I’ve made two registry import files available, should you want to be able to quickly change the Registry values, without the need for manually editing the Registry every time you start the Internet Sharing applet. THIS is for the Wizard and THIS for the Universal, TyTN / Hermes and several other models. To make your life easier, just put it in the file system of your Pocket PC and click it after starting and connecting Internet Sharing so that it’s automatically imported. Should you need a RegEdit 5-compliant Registry Editor for your handheld, I recommend Resco File Explorer (see THIS for more info).

    To make your life even easier, put the shortcut to the Registry import file straight on your Today screen as is explained for example in THIS article. Then, you won't even need to fire up a file explorer tool to find the registry import file - you just go to the Today screen after starting and connecting Internet Sharing, click the registry import file and all is set.
  3. Go to Settings / Connections / Wi-Fi and select the Network Adapters tab (it’s the default and only visible one when the Wi-Fi unit is disabled). Click the name of the Wi-Fi card (“IEEE 802.11b/g Compatible Wi-Fi” on the HTC TyTN / Hermes, “SDIO WLAN Wireless Adapter” on the Wizard and “tiacxwln Compatible Wireless Ethernet” on the Universal). Enable “Use specific IP address” and enter the IP address 192.168.1.1 into the first field (“IP address”). When you click the second row (“Subnet mask”), it’ll auto-fill 255.255.255.0. Just keep it at that. This is shown in the following screenshot:


  4. From now on, you go on as with adding a p2p network (see THIS for my earlier article if interested – reading it is not needed for completing this tutorial): click “Add new…” on the Wireless tab:



    Enter a network name (it can be anything; in here, it’s “WRadhoc”) and make sure you check in “This is a device-to-device (ad-hoc) connection”:



    After clicking Next, you can set up whether you need encryption or not. If not, just set “Data encryption” to “Disabled” as can be seen in the following screenshot:



    Note that you can use both WPA and WEP for encryption. I don’t discuss setting this up as only one client will be able to connect to your Windows Mobile device at a time – while it’s connected, there surely won’t be other clients connected to it. And, after you’ve ended your Net session, when you close Internet Sharing and/or disable Wi-Fi, no one will be able to connect any more either. That is, it's MUCH safer than traditional access points without any kind of encryption.

    Finally, in the list of the available connections, tap-and-hold the just added network and select “Connect” from the context menu:

    http://www.winmobiletech.com/092007W...ewNetwork4.png
  5. Now, you’re ready to connect: just fire up your client and search for nearby networks, making sure you’re not only looking for access points, but also peer-to-peer (ad-hoc) networks. This (looking for both types of network) is the default with both desktop Windows Wi-Fi clients and those of Windows Mobile; other platforms might be needed to be manually instructed to list available ad-hoc connections too.

    Your new ad-hoc network will be discovered; tap-and-hold the connection and select “Connect” in the context menu. Press Next on the next few dialogs that come up. After some seconds, the networks will connect.

Problems:
  1. The connection was pretty slow with my Universal. The Wizard was even worse: the Wi-Fi connection continuously dis- and, then, reconnected, making for example Web browsing even slower. In these cases, assuming you ONLY want to access the Web (and not want to run, say, Instant Messaging clients on the client), you might still want to prefer my proxy server running on the modem.

    As for example Hermes users reported far better results, it might be possible the speed depends on the actual modem used.
  2. You MUST re-edit the Registry (preferably import one of the Registry scripts I’ve provided before) each time you press the Connect button in Internet Sharing. The sole reason for this is that, by default, Internet Sharing sets back the Registry to BT PAN when it’s connected.

    Currently, there’s no solution to this problem. Hope fluxist will be able to hack the DLL file so that it doesn’t overwrite the Registry every time you initiate a connection (see THIS for more info if interested).
  3. The hack doesn't work on the MS Smartphone platform - for example, on the HTC Vox / s710, which also has Wi-Fi. That is, you can't use MS Smartphones as Wi-Fi modems.
__________________
Microsoft MVP - Mobile Devices, 2006, 2007, 2008. Make sure you follow my PPC & SP Mag Expert blog HERE.
Reply With Quote
Sponsored Links

  #2  
Old 28th September 2007, 10:19 AM
tehcrash's Avatar
tehcrash tehcrash is offline
Junior Member
 
Join Date: Jul 2007
Location: Wroclaw
Posts: 15
Default

I can confim this method in HTC P3300 (Artemis) - settings are as the same as in Wizard, with Wi-Fi adapter name TNETWLN1.

Now I'm waiting to change pda into wi-fi card over usb, to share my dsl connected to desktop over wi-fi in pda to my laptop
__________________
Never take life seriously. Nobody gets out alive anyway.

HTC Artemis + 2GB Sandisk
Reply With Quote

  #3  
Old 28th September 2007, 11:25 PM
Menneisyys Menneisyys is offline
Moderator
 
Join Date: Jul 2005
Posts: 5,316
Default

Thanks for the confirmation!

BTW, does it work quickly on your Artemis?
__________________
Microsoft MVP - Mobile Devices, 2006, 2007, 2008. Make sure you follow my PPC & SP Mag Expert blog HERE.
Reply With Quote

  #4  
Old 29th September 2007, 01:50 AM
stifiling stifiling is offline
Member
 
Join Date: Aug 2007
Posts: 41
Default

I cannot get mines to work in this manner. I have the 6700. after making the necessary changes...my created connection, never connects. I did however get this to connect to a null wireless access point and work that way. it worked with registry set as btpan as well. as if my phone was a wireless cable modem providing the connection to my wireless access point. not sure how that happened all I know is it worked. I'm not really interested in that way though. I'd like to us the phone as the router. not have it connect to a router. which is what this topic is explaining how to do...but I can't get it to work.
Reply With Quote

  #5  
Old 29th September 2007, 07:26 AM
stifiling stifiling is offline
Member
 
Join Date: Aug 2007
Posts: 41
Default Working

i got it going now. im using the connection right now. it may have been the usb wireless adapter i was using previously. something jus seemed different about it.
Reply With Quote

  #6  
Old 29th September 2007, 07:32 AM
fluxist fluxist is offline
Senior Member
 
Join Date: Jul 2006
Location: NYC
Posts: 128
Default Patched Internet Sharing App after the weekend

Hope everyone is enjoying this hack I posted.

The dll that needs to be modified is currently working, thanks to Jimm98y. I just need to modify a few more things before I roll it up into a cab and post it. But I just had LASEK yesterday and Im not supposed to be using the computer (not easy), so it's gonna have to wait a few days before I can finish it. Expect it shortly. My hope is that it will become a standard replacement for IS in all cooked ROMs.

thanks
fluxist
Reply With Quote

  #7  
Old 29th September 2007, 09:11 AM
Menneisyys Menneisyys is offline
Moderator
 
Join Date: Jul 2005
Posts: 5,316
Default

Quote:
Originally Posted by fluxist View Post
Hope everyone is enjoying this hack I posted.

The dll that needs to be modified is currently working, thanks to Jimm98y. I just need to modify a few more things before I roll it up into a cab and post it. But I just had LASEK yesterday and Im not supposed to be using the computer (not easy), so it's gonna have to wait a few days before I can finish it. Expect it shortly. My hope is that it will become a standard replacement for IS in all cooked ROMs.

thanks
fluxist

Great news!

(Could you please also drop me a PM when its out so that I can cross-post an announcement, should I forgot to follow this thread?)
__________________
Microsoft MVP - Mobile Devices, 2006, 2007, 2008. Make sure you follow my PPC & SP Mag Expert blog HERE.
Reply With Quote

  #8  
Old 29th September 2007, 02:20 PM
elmirod elmirod is offline
Junior Member
 
Join Date: May 2006
Posts: 13
Default

i have 2 question wich rom should i be using to have acces to those option of IS cause on my current wm5 on hermes its not there,

2nd
2) Change HKLM\Comm\ConnectionSharing\PrivateInterface to "TIACXWLN1" (it should currently be "BTPAN1").
how do we do that ?
whats HKLM , i ask a noob question here hehehehe
Reply With Quote

  #9  
Old 29th September 2007, 02:50 PM
neptune's Avatar
neptune neptune is offline
Senior Member
 
Join Date: May 2006
Location: Toronto
Posts: 497
Default

Quote:
Originally Posted by elmirod View Post
i have 2 question wich rom should i be using to have acces to those option of IS cause on my current wm5 on hermes its not there,

2nd
2) Change HKLM\Comm\ConnectionSharing\PrivateInterface to "TIACXWLN1" (it should currently be "BTPAN1").
how do we do that ?
whats HKLM , i ask a noob question here hehehehe
I'm not sure about your first question but I'm pretty sure its possible with AKU 3 or later...don't hold me to that one though.

As for number 2 its quite simple. HKLM\Comm\ConnectionSharing\PrivateInterface is a registry key that needs to be edited using an registry editor. PHM Registry and Total Commander are just two programs that are able to do this. Using the registry editor just navigate to HKLM\Comm\ConnectionSharing\PrivateInterface and change BTPAN1 to TIACXWLN1. Sounds alot harder than it is.

Will test this out on the Herald and report back.Bigup to fluxist for this one

Cheers


EDIT: Its working on the herald but it is veryvery slow Nice to have as a backup plan though. And for the record the herald is using the SDIO WLAN Wireless adapter;the same as the Wizard. Also I wasn't able to connect more than one user even after editing the maxconnections...with this slow connection I wouldn't want to anyway.

I would love to test this out on a faster connection to see if there are improved speeds but I only have access to one type of connection. Anyone care to test on two different connections???
__________________
_______________________________________________
It's like MK-ULTRA, controlling your brain.Suggestive thinking,causing your perspective to change.
Read about the history of the place that we live in,And stop letting corporate news tell lies to your children

Last edited by neptune; 29th September 2007 at 03:09 PM..
Reply With Quote

  #10  
Old 29th September 2007, 05:42 PM
Menneisyys Menneisyys is offline
Moderator
 
Join Date: Jul 2005
Posts: 5,316
Default

Quote:
Originally Posted by neptune View Post
I would love to test this out on a faster connection to see if there are improved speeds but I only have access to one type of connection. Anyone care to test on two different connections???


You mean for example UMTS / HSDPA vs. GPRS? I've tested it via UMTS (Universal); it was very slow.

That is, the bottleneck doesn't seem to be the cellular speed itself.
__________________
Microsoft MVP - Mobile Devices, 2006, 2007, 2008. Make sure you follow my PPC & SP Mag Expert blog HERE.
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:49 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.