FORUMS
Remove All Ads from XDA
Honor View 10

***HOWTO: Internet Sharing over WiFi*** (Updated 08-Nov-2007)

134 posts
Thanks Meter: 2
 
By fluxist, Senior Member on 26th September 2007, 01:09 AM
Post Reply Email Thread
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 Thumbnails
Click image for larger version

Name:	71106-190003-05.jpg
Views:	4154
Size:	15.6 KB
ID:	57156   Click image for larger version

Name:	71106-190019-09.jpg
Views:	2755
Size:	15.9 KB
ID:	57157  
Attached Files
File Type: zip intshare - TNETW12511.zip - [Click for QR Code] (8.1 KB, 1987 views)
File Type: zip intshare - TNETWLN1.zip - [Click for QR Code] (8.1 KB, 1244 views)
File Type: zip intshare - WLAN11g1.zip - [Click for QR Code] (8.1 KB, 1630 views)
File Type: zip intshare - SWLD25SP1.zip - [Click for QR Code] (8.1 KB, 858 views)
File Type: zip intshare - GSPI86861.zip - [Click for QR Code] (8.1 KB, 991 views)
File Type: cab fluxist IS Mod v0.9.1.cab - [Click for QR Code] (49.1 KB, 3311 views)
 
 
26th September 2007, 02:47 AM |#2  
PAPPL's Avatar
Senior Member
Thanks Meter: 27
 
More
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?
26th September 2007, 03:26 AM |#3  
Junior Member
Thanks Meter: 0
 
More
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?
26th September 2007, 03:45 AM |#4  
OP Senior Member
Flag London
Thanks Meter: 2
 
More
Quote:
Originally Posted by odessaranger

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.
26th September 2007, 04:18 AM |#5  
Junior Member
Thanks Meter: 0
 
More
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....
26th September 2007, 04:55 AM |#6  
famewolf's Avatar
Senior Member
Thanks Meter: 1,187
 
Donate to Me
More
Quote:
Originally Posted by boniestlawyer

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?
26th September 2007, 05:01 AM |#7  
famewolf's Avatar
Senior Member
Thanks Meter: 1,187
 
Donate to Me
More
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

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

26th September 2007, 05:25 AM |#8  
OP Senior Member
Flag London
Thanks Meter: 2
 
More
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
26th September 2007, 06:15 AM |#9  
famewolf's Avatar
Senior Member
Thanks Meter: 1,187
 
Donate to Me
More
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

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

26th September 2007, 11:06 AM |#10  
Member
Thanks Meter: 0
 
More
Impact on BT?
What a brill find. Well done.
Does it break anything with bluetooth?
Tx
26th September 2007, 09:35 PM |#11  
Senior Member
Thanks Meter: 9
 
Donate to Me
More
can someone elaborate what this is for, maybe give a sample scenario on using this?

Is this basically allowing a computer to use the internet connection of the pda phone (ie EVDO, 1RxTT, etc.) through wifi, instead of bluetooth or USB cable? (ie tethering?)
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes