Go Back   xda-developers > Windows Mobile Development and Hacking > Windows Mobile Apps and Games


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26th September 2007, 01:09 AM
fluxist fluxist is offline
Senior Member
 
Join Date: Jul 2006
Location: NYC
Posts: 128
Lightbulb ***HOWTO: Internet Sharing over WiFi*** (Updated 08-Nov-2007)

I have figured out how to use Internet Sharing over WiFi, which essentially makes my Hermes an Access Point.

Do the following:
1) Open Settings->Internet Sharing. Enable IS for Bluetooth PAN.
2) Change HKLM\Comm\ConnectionSharing\PrivateInterface to "TIACXWLN1" (for the Hermes). It should currently be "BTPAN1".
3) Open Settings-> Connections -> Wi-Fi. Select Network Adapters tab. Click IEEE 802.11b/g Compatible Wi-Fi.
4) Enter IP address 192.168.1.1 and subnet mask 255.255.255.0. Click OK.
5) Select Wireless tab. Add New.. to add the Network name for your ad-hoc network (I prefer "adhoc")
6) Set the client computer to use the same ad-hoc network. Client will receive an IP address from the device (don't need to manually set the IP).

And it works!

Interestingly, while IS was enabled, wifi stayed on and connected when the phone went to standby mode. Normally wifi turns off to save battery during standby. I imagine this will drain your battery in a hot minute, so bring your charger.

UPDATE (28-Oct-2007): Attached are some more beta releases of patched intshare.dll. I've created versions for most of the adapter names people have requested. By renaming this dll to intshare.dll and copying it to \Windows, Internet Sharing will use TIACXWLN1 (or whichever dll you use) when Bluetooth PAN is selected. I.e., if you use this, you will not need to make the registry changes above.

This will handle the registry part, but of course you'll still need to set up the ad-hoc network on your own.

UPDATE (03-Nov-2007): I've attached a beta version of the patched Internet Sharing app. It's in its own cab so it won't overwrite your existing IS. This app replaces Bluetooth PAN with 802.11b/g Wireless Ethernet. No registry hacking required. This app is well suited to replace the MS version on cooked ROMs.

If you use an adapter other than TIACXWLN1 then replace intshare.dll just as before.

UPDATE (08-Nov-2007): Attached is v 0.9.1 of the Internet Sharing Mod. This update addresses the 10 minute disconnect bug most people have experienced.

best,
fluxist
Attached Images
File Type: jpg 71106-190003-05.jpg (15.6 KB, 2935 views)
File Type: jpg 71106-190019-09.jpg (15.9 KB, 1936 views)
Attached Files
File Type: zip intshare - TNETW12511.zip (8.1 KB, 1447 views)
File Type: zip intshare - TNETWLN1.zip (8.1 KB, 948 views)
File Type: zip intshare - WLAN11g1.zip (8.1 KB, 1152 views)
File Type: zip intshare - SWLD25SP1.zip (8.1 KB, 610 views)
File Type: zip intshare - GSPI86861.zip (8.1 KB, 695 views)
File Type: cab fluxist IS Mod v0.9.1.cab (49.1 KB, 2586 views)

Last edited by fluxist; 8th November 2007 at 08:15 AM.. Reason: added IS Mod v0.9.1
Reply With Quote
Sponsored Links

  #2  
Old 26th September 2007, 02:47 AM
PAPPL's Avatar
PAPPL PAPPL is offline
Senior Member
 
Join Date: Dec 2006
Posts: 550
Default

This is the first thing I'll try when i'm at home again!
I can't believe this! Waiting for this since i got my Hermes. Thx for this development. This is the greatest effort since Hard-SPL and WM6 upgrade.
Now I can connect my XBOX360 to the Internet without starting my PC and sharing it over PC-LAN. USB-Charger is at the Front of the XBOX360.
I hope it will work.
You said the Max-Connections can be reworked. Does this mean it will support Ad-Hoc AND WLAN-Routing to many recepients too?
__________________
Read the -> XDA-WIKI <- for answering many questions BEFORE posting here
Use -> SEARCH <- BEFORE starting a new Topic
Reply With Quote

  #3  
Old 26th September 2007, 03:26 AM
odessaranger odessaranger is offline
Junior Member
 
Join Date: Aug 2007
Posts: 5
Default This worked for me too on a Kaiser/TYTN II

I'm doing some additional experimentation to see what exactly this can do - for instance to replace a bluetooth connection to a laptop with a wifi one?
Reply With Quote

  #4  
Old 26th September 2007, 03:45 AM
fluxist fluxist is offline
Senior Member
 
Join Date: Jul 2006
Location: NYC
Posts: 128
Default

Quote:
Originally Posted by odessaranger View Post
I'm doing some additional experimentation to see what exactly this can do - for instance to replace a bluetooth connection to a laptop with a wifi one?
not sure what you mean by replacing the connection. With ICS, obviously you cant share your connection over BT while sharing it over WIFI. and you can normally use wifi to connect to another computer by using an ad-hoc connection and manually entering a private ip on the same subnet for each computer.
Reply With Quote

  #5  
Old 26th September 2007, 04:18 AM
boniestlawyer boniestlawyer is offline
Junior Member
 
Join Date: Mar 2007
Posts: 1
Default

this is awesome. worked perfectly for me.

After trying to stuff around with a proxy server for days and then you come along with something as simple as this....
Reply With Quote

  #6  
Old 26th September 2007, 04:55 AM
famewolf's Avatar
famewolf famewolf is offline
Senior Member
 
Join Date: Jul 2006
Posts: 989
Default

Quote:
Originally Posted by boniestlawyer View Post
this is awesome. worked perfectly for me.

After trying to stuff around with a proxy server for days and then you come along with something as simple as this....
Were you able to use more than one client connected?
__________________
AT&T Tilt on T-mobile
ROM: WM 6.5.3 | TPC 28002 "Stock-Like" Rom


T-Mobile MDA
T-Mobile USA
IPL/SPL: 2.26
GSM: 2.71.11
ROM: XM6.1 Developer Edition [XM6r5 + wm6.1 hybrid]

Qtek 8500 - WM6.1 PRO 5.2.19199
Reply With Quote

  #7  
Old 26th September 2007, 05:01 AM
famewolf's Avatar
famewolf famewolf is offline
Senior Member
 
Join Date: Jul 2006
Posts: 989
Default

I'll admit..when I saw this my first thought was that this was another "How can I do internet sharing via wifi" and the title was just misleading..instead I find myself very impressed with your accomplishment. Very well done! As a "hack" untill you figure out how to mod the dll which I'm sure is only a matter of time now that you have pointed everyone in the right direction, you can export the registry key for both the Bluetooth adapter and the Wifi one and "import" whichever one you want to use at a given time...it's not pretty but it should work.


Some issues of concern would be that the AP is wide open and can be connected to by anyone with no password etc...the bluetooth pairing allowed some security but using the wifi doesn't have the same shared key protection...or am I missing something obvious?

Quote:
Originally Posted by fluxist View Post
I have figured out how to use Internet Sharing over WiFi, which essentially makes my Hermes an Access Point.

Do the following:
1) Open Settings->Internet Sharing. Enable IS for Bluetooth PAN.
2) Change HKLM\Comm\ConnectionSharing\PrivateInterface to "TIACXWLN1" (it should currently be "BTPAN1").
3) Open Settings-> Connections -> Wi-Fi. Select Network Adapters tab. Click IEEE 802.11b/g Compatible Wi-Fi.
4) Enter IP address 192.168.1.1 and subnet mask 255.255.255.0. Click OK.
5) Select Wireless tab. Add New.. to add the Network name for your ad-hoc network (I prefer "adhoc"
6) Set the client computer to use the same ad-hoc network. Client will receive an IP address from the device (don't need to manually set the IP).

And it works!

When I used it I was only able to get one client to connect, however there is a reg value, HKLM\Comm\BTPAN1\Parms\MaxConnections that may help if it is changed from 1 to 2 (or whatever). But I haven't tried.

Interestingly, while IS was enabled, wifi stayed on and connected when the phone went to standby mode. Normally wifi turns off to save battery during standby. So that's a good thing, although I imagine this will drain your battery in a hot minute, so bring your charger.

I was going to release a patched intshare.dll so that the normal Internet Sharing utility can do this, but I'm having trouble changing the section addresses in the dll to the right values after I add data. If anyone knows how to do this PM me and I'll give you the details.

best,
fluxist
__________________
AT&T Tilt on T-mobile
ROM: WM 6.5.3 | TPC 28002 "Stock-Like" Rom


T-Mobile MDA
T-Mobile USA
IPL/SPL: 2.26
GSM: 2.71.11
ROM: XM6.1 Developer Edition [XM6r5 + wm6.1 hybrid]

Qtek 8500 - WM6.1 PRO 5.2.19199

Last edited by famewolf; 26th September 2007 at 05:05 AM..
Reply With Quote

  #8  
Old 26th September 2007, 05:25 AM
fluxist fluxist is offline
Senior Member
 
Join Date: Jul 2006
Location: NYC
Posts: 128
Default

thank you.

this work actually stemmed from my trying to share my phone's tethered connection with another client. by which i mean, my laptop is in a cafe online through my 8525 using Internet Sharing(IS) over usb. and i want to provide a connection, through wifi or ethernet, to my gfriends laptop. this actually isnt normally possible b/c WM IS and XP Internet Connection Sharing (ICS) both have 192.168.0.1 hard-coded as the gateway IP. so the phone uses that IP to give my laptop a connection, and my laptop tries to use the same IP with ICS. anyway, it fails because of this. i was able to get past that problem by going into Settings -> Wi-Fi -> Network Adapters -> Remote-NDIS and manually setting 192.168.1.1. This lead to the breakthrough with regards to wifi. prior to that id been trying all different ways to have the wifi adapter spoof the bt pan, however i could never get dhcp to assign an IP to the client. this is what it took.

and it's great that DHCP does in fact work here. it makes it dead easy for any arbitrary client to get online. just join the adhoc network as if it were an AP.


anyway, security-wise the ad-hoc network can use WEP or WPA, so security doesn't have to be a problem. the procedures for doing this are the same as normal.

and i haven't tried that reg key to enable multiple clients. but it looked like an obvious choice. i'll leave that as an exercise for the reader

fluxist
Reply With Quote

  #9  
Old 26th September 2007, 06:15 AM
famewolf's Avatar
famewolf famewolf is offline
Senior Member
 
Join Date: Jul 2006
Posts: 989
Default

I ran into same issue with XP internet sharing. Another workaround is to have a linux machine do NAT( since you can specify the IP used there) to whatever other clients you want and have it connected via bluetooth dun or bluetooth PAND (which is the solution I use to give internet to my replaytv and a couple of laptops in the house)...my edge connection is my main internet feed..a cacheing proxy such as wwoffle, squid of my personal preference "polipo" helps alot to when using gprs/edge etc since it helps with the latency.


Quote:
Originally Posted by fluxist View Post
thank you.

this work actually stemmed from my trying to share my phone's tethered connection with another client. by which i mean, my laptop is in a cafe online through my 8525 using Internet Sharing(IS) over usb. and i want to provide a connection, through wifi or ethernet, to my gfriends laptop. this actually isnt normally possible b/c WM IS and XP Internet Connection Sharing (ICS) both have 192.168.0.1 hard-coded as the gateway IP. so the phone uses that IP to give my laptop a connection, and my laptop tries to use the same IP with ICS. anyway, it fails because of this. i was able to get past that problem by going into Settings -> Wi-Fi -> Network Adapters -> Remote-NDIS and manually setting 192.168.1.1. This lead to the breakthrough with regards to wifi. prior to that id been trying all different ways to have the wifi adapter spoof the bt pan, however i could never get dhcp to assign an IP to the client. this is what it took.

and it's great that DHCP does in fact work here. it makes it dead easy for any arbitrary client to get online. just join the adhoc network as if it were an AP.


anyway, security-wise the ad-hoc network can use WEP or WPA, so security doesn't have to be a problem. the procedures for doing this are the same as normal.

and i haven't tried that reg key to enable multiple clients. but it looked like an obvious choice. i'll leave that as an exercise for the reader

fluxist
__________________
AT&T Tilt on T-mobile
ROM: WM 6.5.3 | TPC 28002 "Stock-Like" Rom


T-Mobile MDA
T-Mobile USA
IPL/SPL: 2.26
GSM: 2.71.11
ROM: XM6.1 Developer Edition [XM6r5 + wm6.1 hybrid]

Qtek 8500 - WM6.1 PRO 5.2.19199
Reply With Quote

  #10  
Old 26th September 2007, 11:06 AM
inframan inframan is offline
Member
 
Join Date: Apr 2007
Posts: 32
Default Impact on BT?

What a brill find. Well done.
Does it break anything with bluetooth?
Tx
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 05:46 AM.


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