Go Back   xda-developers > General discussion > Development and Hacking
Register FAQ XDA-Portal XDA-Store XDA-Wiki Donate! Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26-09-2007, 12:09 AM
fluxist fluxist is offline
Member
 
Join Date: Jul 2006
Location: NYC
Posts: 91
Lightbulb ***HOWTO: Internet Sharing over WiFi OR How to Make My Phone an 802.11b/g AP***

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
Reply With Quote
  #2  
Old 26-09-2007, 01:47 AM
PAPPL's Avatar
PAPPL PAPPL is offline
Senior Member
 
Join Date: Dec 2006
Posts: 248
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 26-09-2007, 02: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 26-09-2007, 02:45 AM
fluxist fluxist is offline
Member
 
Join Date: Jul 2006
Location: NYC
Posts: 91
Default

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.
Reply With Quote
  #5  
Old 26-09-2007, 03: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
Sponsored Links
  #6  
Old 26-09-2007, 03:55 AM
famewolf's Avatar
famewolf famewolf is online now
Senior Member
 
Join Date: Jul 2006
Posts: 502
Default

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?
__________________
T-Mobile MDA
T-Mobile USA
IPL/SPL: 2.26
GSM: 2.69.11
ROM: TNT 5.0 (Professional) [http://forum.xda-developers.com/showthread.php?t=328917]
Reply With Quote
  #7  
Old 26-09-2007, 04:01 AM
famewolf's Avatar
famewolf famewolf is online now
Senior Member
 
Join Date: Jul 2006
Posts: 502
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
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
__________________
T-Mobile MDA
T-Mobile USA
IPL/SPL: 2.26
GSM: 2.69.11
ROM: TNT 5.0 (Professional) [http://forum.xda-developers.com/showthread.php?t=328917]

Last edited by famewolf : 26-09-2007 at 04:05 AM.
Reply With Quote
  #8  
Old 26-09-2007, 04:25 AM
fluxist fluxist is offline
Member
 
Join Date: Jul 2006
Location: NYC
Posts: 91
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 26-09-2007, 05:15 AM
famewolf's Avatar
famewolf famewolf is online now
Senior Member
 
Join Date: Jul 2006
Posts: 502
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
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
__________________
T-Mobile MDA
T-Mobile USA
IPL/SPL: 2.26
GSM: 2.69.11
ROM: TNT 5.0 (Professional) [http://forum.xda-developers.com/showthread.php?t=328917]
Reply With Quote
  #10  
Old 26-09-2007, 10:06 AM
inframan inframan is offline
Member
 
Join Date: Apr 2007
Posts: 30
Default Impact on BT?

What a brill find. Well done.
Does it break anything with bluetooth?
Tx
Reply With Quote
Sponsored Links
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

vB 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 08:50 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.