Related
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
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?
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?
odessaranger said:
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?
Click to expand...
Click to collapse
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.
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....
boniestlawyer said:
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....
Click to expand...
Click to collapse
Were you able to use more than one client connected?
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?
fluxist said:
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
Click to expand...
Click to collapse
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
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.
fluxist said:
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
Click to expand...
Click to collapse
Impact on BT?
What a brill find. Well done.
Does it break anything with bluetooth?
Tx
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?)
if someone manages to get this working with xbox 360 make a tutorial plx ;D
superflysocal said:
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?)
Click to expand...
Click to collapse
thats what i wanna know , could i use my hsdpa connection via wifi to my psp?
I'll do a tutorial when i'm at home again. Maybe somebody with know-how can make a cab-file v1.0 for this "WLAN-Modem hack".
This surely will be a great app.
yes, your xbox and your psp should be able to connect just fine, as long as they support ad-hoc wireless (which i imagine they must). this hack will allow the phone to act like any normal wifi access point. the only difference is the client has to be seraching for ad-hoc networks in addition to normal APs.
the difficulty with creating a cab file at this point is that the registry setting is not persistent. that is, it must be set each time you enable IS. the setting is lost every time IS starts. this is why i am trying to patch the dll - so wifi will work as a normal, additional option in Internet Sharing (and hopefully this should be ready soon).
fluxist
when you say click "IEEE 802.11b/g Compatible Wi-Fi" do you mean the wifi network adapters in my case would be "tiacxwln compatible wireless ethernet"? im trying it on a 6700 WM5
I would LOVE to get this working on my TMO WM6 Wing, but I'm having issues:
1) Open Settings->Internet Sharing. Enable IS for Bluetooth PAN.
Got it - except on my device it's Programs -> accessories -> IS
2) Change HKLM\Comm\ConnectionSharing\PrivateInterface to "TIACXWLN1" (it should currently be "BTPAN1").
Check - but is the T1ACXWLN1 device specific? If so, how can I find the interface ID on my device?
3) Open Settings-> Connections -> Wi-Fi. Select Network Adapters tab. Click IEEE 802.11b/g Compatible Wi-Fi.
For me it's settings -> connections -> network cards, but I don't have an IEEE 802.11 listed. I connected to an existing AP, and found that my 'SDIO WLAN Wireless Adapter' does receive a DHCP address, so I tried changing it to 192.168.1.1...
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"
Found this and set up my WING-FI network.
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).
The client PC connects to WING-FI, but never receives an IP address...
What could I be doing wrong? Is it the hardware ID in the registry? I've created the network with WPA, then after the connection problems, with no security - but still no change.
Thanks!!
Ryan
neonstorm said:
I would LOVE to get this working on my TMO WM6 Wing, but I'm having issues...
Click to expand...
Click to collapse
Very likely the string TIACXWLN1 needs to be something different. Check HKLM\Software\WZCSV\Parameters\Interfaces\
There should be a key there with the name of your wireless adapter. It should end in "1".
And if not there, it should also be visible under HKLM\Comm\
Let us know how it works out.
EDIT: I just noticed you typed T1ACXWLN1. The string must be TIACXWLN1. That's "i" not one.
fluxist
I own a PPC6700 as well and I was able to get it working no problem other than the fact that our wireless adapter is not the same as the one mentioned. The reg edit is the same it's just the first network adapter in the list when you create the network settings.
fluxist said:
yes, your xbox and your psp should be able to connect just fine, as long as they support ad-hoc wireless (which i imagine they must). this hack will allow the phone to act like any normal wifi access point. the only difference is the client has to be seraching for ad-hoc networks in addition to normal APs.
the difficulty with creating a cab file at this point is that the registry setting is not persistent. that is, it must be set each time you enable IS. the setting is lost every time IS starts. this is why i am trying to patch the dll - so wifi will work as a normal, additional option in Internet Sharing (and hopefully this should be ready soon).
fluxist
Click to expand...
Click to collapse
If you send me the dll I could look into it.
i have some experience with editing dlls.
good work man
I didn't get much response on my previous question about proxy support for the stock rom, so I was wondering if any of the alternate roms include it. I would very much like to have access to the internet at work, but the school district requires loggon through a proxy server (content filter) before you can access the WiFi network. I realize that port restrictions that the district places on the network will likely prevent me from accessing the market, gmail, or voice search. But at school, I would most like to just access flash based educational website for kids.
Any thoughts on this? The district is moving toward ipads as the tablet platform of choice because of the lack of proxy support with Android. But the ipads lack of support for flash really hinders what I want a tablet to be able to do for me. (Yes, I want my cake and eat it too!) Is this too much to ask?
I connect my gtab to my schools wirelesss that is using 802.1x EAP for wireless security. I had to install a mod that changed the settings app and allowed advanced wireless settings. That allowed me to put in the authentication type, domain name, password, etc. Once connected, I ran a mod that set it back to the original settings apps. I asked in your previous post as to whether you are having problems actually getting on the wireless or once on, you can't bet by the web filter. We use websense here. Once I got on the wireless, there was an websense authentication dialog that popped up. Once I put my domain\username and password in, it works fine.
It won't even let me connect to the district network because I don't have anywhere to enter the proxy settings in the wifi set up box.
Assuming you have Pershoot's or Clemsyn's Kernel (or one of the better ROMs), you need something like ASProxy. I use it at work all the time and it does the job. There is a free program called TransParentProxy which is more limited but does allow you to quickly test settings without spending any money.
I do not see a proxy settings in the wpa_supplicant.conf file. My understanding of this file is it lists all possible settings settings available for Wi-Fi configurations.
# This file describes configuration file format and lists all available option.
Click to expand...
Click to collapse
Previously I've only needed to access a proxy after connecting to the network. Perhaps you have run into a problem getting connected to your network using the tablets Wi-Fi settings manager. So connecting to the network might be your first step and then connecting to the proxy your 2nd.
I found the free Wifi Advanced Config Editor (WifiACE on the Android Market) to have a GUI to easily configure advanced Wi-Fi settings not found in the tablet's settings. I realized when trying to set up an advanced configuration I needed to create a new connection in the tablets WiFi Settings with the security of NONE to avoid having some of the wrong settings configured by default. Then using the information from the my network admin I manually set the options via the WifACE GUI, un-checking NONE, and bingo I got connected.
I recommend WiFiACe with one caveat: make sure you have a way (like adb) working and know how to backup, delete, and restore files and that you make a back up of all wpa_supplicant.conf files on your tablet.
My caveat comes because my first reboot after I got connected to the Enterprise network at work the Wifi would not start or run. It would only display "error" and do nothing. Several reboots later it still wouldn't start and without Wi-Fi running there is no way to make configuration changes either through WifiACE or the tablets Wi-Fi Settings. I had to use the adb shell to delete the newly configured wap_supplicant.conf and create a new connection via the tablets Wi-Fi Settings and then make the necessary changes through WifiACE. Once that was done it ran and connected. Now after multiple reboots it still works and connects. Without the ability to delete the file I'm afraid I would have had to re-flash my tablet to get Wi-Fi to work again.
I don't think you've ever mentioned what ROM you're running. If you're running stock, you will have a very difficult time, in fact it may be impossible. If you're running a different mod, there's hope. Now, assuming that you got ClockWordMod (CWM) installed, you can probably be successful in at least connecting to the wireless. If you don't have CWM installed, here's a good place to start:
http://forum.xda-developers.com/showthread.php?t=865245
Once you have CWM installed, go to this thread:
http://forum.xda-developers.com/showthread.php?t=857939
This will give you the zips for installing a differernt wireless config tool that will allow you to put in the 802.1x EAP config. Once you can successfully connect, you back out the the tool you installed.
I'm new to this site so I hope I'm posting in the right area. I was enjoying using my non-rooted G Tablet at work but the recently switched to a new network and my G Tablet can't even SEE it. I've just now wandered around the whole building to no avail. I know it is available and working because the students near me are using their laptops, smart phones, and tablets--and their only option for wi-fi is the school's one network.
They don't have an Android guide available, but they do have information for how to get connected using Windows devices:
Enter the SSID
Change Network authentication to: WPA2
Change Data Encryption to: AES
Click on Authentication Tab
Change EAP type to: Protected EAP
Uncheck Authenticate as computer when computer information is available
Select Authentication Method: Secured Password (EAP-MSCHAP v2)
Uncheck automatically use my windows Logon name and password.
Now, obviously most of these things are not options on the G Tablet (at least not where I know to find them) and I don't know if they are helpful to solving this but I thought I'd include the info. I did try manually adding a new Wi Fi network. I wrote in the SSID, and chose "WPA/WPA2 PSK" option. But then it asked for a password which is not necessary in the guides. I will eventually log on using my work user name and password, but I can't get to that screen (and just out of frustration I did try entering my work password just to see if anything happened--it didn't).
I realize you can't know every setting my work place uses but I hope that's enough to figure out what's wrong. Is there something the G Tablet just doesn't support with the new network? If I rooted, could that help? I feel like the problem has to be my G Tablet since everyone else has working internet. I mainly bought the G Tablet to use here at work for the sites they've blocked. I'll survive without it but I'd really like to get some use out of my device!
Wow, not one helpful comment? Well IT finally got back to me and the woman thinks that my tablet doesn't support WPA2-Enterprise. Is this something I could change with rooting? And if so, which ROM or whatever should I use?
802.1x EAP
SKoczan said:
I'm new to this site so I hope I'm posting in the right area. I was enjoying using my non-rooted G Tablet at work but the recently switched to a new network and my G Tablet can't even SEE it. I've just now wandered around the whole building to no avail. I know it is available and working because the students near me are using their laptops, smart phones, and tablets--and their only option for wi-fi is the school's one network.
They don't have an Android guide available, but they do have information for how to get connected using Windows devices:
Enter the SSID
Change Network authentication to: WPA2
Change Data Encryption to: AES
Click on Authentication Tab
Change EAP type to: Protected EAP
Uncheck Authenticate as computer when computer information is available
Select Authentication Method: Secured Password (EAP-MSCHAP v2)
Uncheck automatically use my windows Logon name and password.
Now, obviously most of these things are not options on the G Tablet (at least not where I know to find them) and I don't know if they are helpful to solving this but I thought I'd include the info. I did try manually adding a new Wi Fi network. I wrote in the SSID, and chose "WPA/WPA2 PSK" option. But then it asked for a password which is not necessary in the guides. I will eventually log on using my work user name and password, but I can't get to that screen (and just out of frustration I did try entering my work password just to see if anything happened--it didn't).
I realize you can't know every setting my work place uses but I hope that's enough to figure out what's wrong. Is there something the G Tablet just doesn't support with the new network? If I rooted, could that help? I feel like the problem has to be my G Tablet since everyone else has working internet. I mainly bought the G Tablet to use here at work for the sites they've blocked. I'll survive without it but I'd really like to get some use out of my device!
Click to expand...
Click to collapse
Not sure if these show up on Froyo roms but I'm on GTab Comb v3.3 (Honeycomb).
Try this:
Go to WIFI settings, select add WIFI Network, type in the SSID, for Security select 802.1x EAP, for EAP method select PEAP,for Phase 2 select MSCHAPv2.
Al
Whenever I tether my laptop via the USB cable it takes a long time for the laptop to connect and when it does, it says "Connected to Network X", where X is a number. Everytime I reconnect via USB X increases by 1 so the last time I did it I was on Network 43!!!!! I accept that this could be in part a windows thing and not a GS3 thing BUT when I connect via a Wifi Hotspot it connects really really quickly and always says I am connected to AndroidAP. Its as if the USB tethering firmware is
Therefore connecting via hotspot seems much more stable and smooth however I was under the impression that the laptop internet speed will be quicker using USB tether rather than wifi and as I primarilly use my SGS3 as my home broadband connection I want to try and configure it to get the fastest speed on my laptop as possible. If I do an internet speed check on my SGS3 while my laptop is tethered the phone connection is always faster than the doing the same on the laptop. I guess this should be perhaps expected but as much as 4Mbits/s. I.e My phone was getting speeds of 6Mbits/sec but without having any apps open on the phone, my laptop would only get 2Mbits/s????
Any advice?
Ginyons said:
Whenever I tether my laptop via the USB cable it takes a long time for the laptop to connect and when it does, it says "Connected to Network X", where X is a number. Everytime I reconnect via USB X increases by 1 so the last time I did it I was on Network 43!!!!! I accept that this could be in part a windows thing and not a GS3 thing BUT when I connect via a Wifi Hotspot it connects really really quickly and always says I am connected to AndroidAP. Its as if the USB tethering firmware is
Therefore connecting via hotspot seems much more stable and smooth however I was under the impression that the laptop internet speed will be quicker using USB tether rather than wifi and as I primarilly use my SGS3 as my home broadband connection I want to try and configure it to get the fastest speed on my laptop as possible. If I do an internet speed check on my SGS3 while my laptop is tethered the phone connection is always faster than the doing the same on the laptop. I guess this should be perhaps expected but as much as 4Mbits/s. I.e My phone was getting speeds of 6Mbits/sec but without having any apps open on the phone, my laptop would only get 2Mbits/s????
Any advice?
Click to expand...
Click to collapse
It does not related to Device problem.
It related to Windows,your computer create a new network when each time you connect to internet.
This may due to Firewall,Antivirus etc..
Are there any apps out there which are better than the stock USB tethering method. I do get slightly faster speeds on the laptop when USB tethered but the Windows network methodolgy seems unsatble compared with the wifi hotspot method
I was suffering the same and finally found a solution for this (at least on my S2).
It requires root, plus a kernel that supports init.d scripts (or running a script yourself every time you start the phone and will want to tether before restarting).
Just run this script:
Code:
chmod u+w /sys/module/g_android/parameters/dev_addr
echo 5a:xx:xx:xx:xx:xx > /sys/module/g_android/parameters/dev_addr
chmod u-w /sys/module/g_android/parameters/dev_addr
Just replace xx's with whatever hex values (0-9 or a-f) you want. Example: 5a:10:20:30:40:50
Windows detects the network you're connecting to by identifying the MAC address of the gateway. It can then know whether you're connecting to your home router (safe), an internet cafe (public), etc.
Whenever it finds a gateway whose MAC address is not recorded yet, it will state it's an unknown network, ask you what type is it (home / public), and assign a new number to it.
The thing is that android (or at least mine) is generating a completely random MAC address for itself whenever tethering is turned on, and naturally that will be different every time.
If you run those commands above, you're overriding that randomness and the device will start having always that MAC address and Windows will remember you're connecting to the same gateway.
PS: This is obviously dependent on whether the kernel you're using includes that /sys/module/g_android/parameters/dev_addr file. I'm inclined to think it's standard, but I'm not sure.
I'm having the same "problem".
Is there any other (nicer) way to permanently disable that random MAC generation? Other than using the method Tungstwenty explained above. Does anyone know why is that android "feature" even implemented, it doesn't make much sense to me.
Has anyone else figured out any solutions to this besides running a script everytime you boot? Seems kinda crazy to have to go to that extent for something that should be standard...
^ Exactly. Any updates yet?
This thread should be moved to general android (not device specific)
Report it via report button .
jje
ketanmatrix said:
This thread should be moved to general android (not device specific)
Click to expand...
Click to collapse
I can confirm that the same issue happened on my new Xperia Z, and the solution I posted above has also solved it.
The new device was even recognized by Windows as the already identified router, since I reused the same value from the previous device.
So I agree it's a cross-device issue with apparently the same solution, at least in a few of them.
Tungstwenty said:
I can confirm that the same issue happened on my new Xperia Z, and the solution I posted above has also solved it.
The new device was even recognized by Windows as the already identified router, since I reused the same value from the previous device.
So I agree it's a cross-device issue with apparently the same solution, at least in a few of them.
Click to expand...
Click to collapse
reported it as bug to google! hope it goes away in jb 4.3
anyway running that script didnt help on xperia z connecting to windows 8 pro
Moved to Android Q&A
Tungstwenty said:
I was suffering the same and finally found a solution for this (at least on my S2).
It requires root, plus a kernel that supports init.d scripts (or running a script yourself every time you start the phone and will want to tether before restarting).
Just run this script:
Code:
chmod u+w /sys/module/g_android/parameters/dev_addr
echo 5a:xx:xx:xx:xx:xx > /sys/module/g_android/parameters/dev_addr
chmod u-w /sys/module/g_android/parameters/dev_addr
Just replace xx's with whatever hex values (0-9 or a-f) you want. Example: 5a:10:20:30:40:50
Windows detects the network you're connecting to by identifying the MAC address of the gateway. It can then know whether you're connecting to your home router (safe), an internet cafe (public), etc.
Whenever it finds a gateway whose MAC address is not recorded yet, it will state it's an unknown network, ask you what type is it (home / public), and assign a new number to it.
The thing is that android (or at least mine) is generating a completely random MAC address for itself whenever tethering is turned on, and naturally that will be different every time.
If you run those commands above, you're overriding that randomness and the device will start having always that MAC address and Windows will remember you're connecting to the same gateway.
PS: This is obviously dependent on whether the kernel you're using includes that /sys/module/g_android/parameters/dev_addr file. I'm inclined to think it's standard, but I'm not sure.
Click to expand...
Click to collapse
i have rooted htc desire with CM 7.2.0.1... aaaand.. i no have g_android folder.. but i found the dev_addr file in sys/module/u_tether/parameters/dev_addr ... my question.. that file its same? or better when i dont toutch this file?
ktomi22 said:
i have rooted htc desire with CM 7.2.0.1... aaaand.. i no have g_android folder.. but i found the dev_addr file in sys/module/u_tether/parameters/dev_addr ... my question.. that file its same? or better when i dont toutch this file?
Click to expand...
Click to collapse
From the path ("...tether...") it's likely that it might be the right one for your device.
Simply try running the commands manually from an ADB shell and seeing if it works for you. If it does, put it on an init script. If not, it should be gone after a reboot.
A possible solution
For Windows to recognize your mobile device as the same first one needs to create a bridge in Windows 7.
Open Network Connections by clicking the Start button, and then clicking Control Panel. In the search box, type adapter, and then, under Network and Sharing Center, click View Network Connections.
Hold down the Ctrl key and Select internet connection from your android phone with your alternate connection you usually use. If you use only your android phone for internet, just select the mobile device.
Hold down ALT to reveal Advanced Menu and click Bridge Connections. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
You should now have a new network type named "Network Bridge" created.
Leave this internet bridge on your system.
Now whenever you connect your android phone, it will show up as the same network connection always. This will stay so even after you restart your system.
maxmumbai said:
For Windows to recognize your mobile device as the same first one needs to create a bridge in Windows 7.
Open Network Connections by clicking the Start button, and then clicking Control Panel. In the search box, type adapter, and then, under Network and Sharing Center, click View Network Connections.
Hold down the Ctrl key and Select internet connection from your android phone with your alternate connection you usually use. If you use only your android phone for internet, just select the mobile device.
Hold down ALT to reveal Advanced Menu and click Bridge Connections. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
You should now have a new network type named "Network Bridge" created.
Leave this internet bridge on your system.
Now whenever you connect your android phone, it will show up as the same network connection always. This will stay so even after you restart your system.
Click to expand...
Click to collapse
Hey MaxMumbai.....
what about windows 8.1.....? The right click on the network adapter in question in win 8.1 reveals 'Bridge connections' in the menu.
Can you make this much clearer please "Hold down the Ctrl key and Select internet connection from your android phone with your alternate connection you usually use. If you use only your android phone for internet, just select the mobile device."
You need at least 2 LAN connections to make a bridge so how can I only select my mobile device connection....? This is what I have in my adapters panel :
Bluetooth Network Connection .... Not ConnectedX
Ethernet.... Network cable unpluggedX
Local Area Connection..... Remote NDIS based internet sharing device (this is my tether)
WiFi... Not Connected X
Can you please explain where I make the bridge....?
Cheers
Ginyons said:
Whenever I tether my laptop via the USB cable it takes a long time for the laptop to connect and when it does, it says "Connected to Network X", where X is a number. Everytime I reconnect via USB X increases by 1 so the last time I did it I was on Network 43!!!!! I accept that this could be in part a windows thing and not a GS3 thing BUT when I connect via a Wifi Hotspot it connects really really quickly and always says I am connected to AndroidAP. Its as if the USB tethering firmware is
Therefore connecting via hotspot seems much more stable and smooth however I was under the impression that the laptop internet speed will be quicker using USB tether rather than wifi and as I primarilly use my SGS3 as my home broadband connection I want to try and configure it to get the fastest speed on my laptop as possible. If I do an internet speed check on my SGS3 while my laptop is tethered the phone connection is always faster than the doing the same on the laptop. I guess this should be perhaps expected but as much as 4Mbits/s. I.e My phone was getting speeds of 6Mbits/sec but without having any apps open on the phone, my laptop would only get 2Mbits/s????
Any advice?
Click to expand...
Click to collapse
You can try this if you don't mind the network icon not showing that you're connected.
Open Registry Editor ( Windows key + R to bring up the Run dialog, then type regedit and press Enter ).
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}.
There are numbered subkeys starting with 0001. Look in each subkey in descending order for the one with the DriverDesc value having your smartphone's RNDIS driver name (same name shown in your Network Connections view as the "Connect using" value).
Once located, create a new DWORD (32-bit) Value.
Enter the name as *NdisDeviceType (remember to include the asterisk sign * in front).
Edit the newly created DWORD value and enter the value data as 1 (Base choice doesn't matter). Click OK.
Once done, disable and re-enable usb tethering
You will no longer get a prompt asking for network location whenever you connect your smartphone, but you will still get the prompt when connecting to other devices.
Important Note: When you are only connected to your smartphone, your computer's network icon will continue to show that you are not connected to any network. However, the internet will still work fine.
I just found an easier way to avoid windows (10) to generate a new network number and reset the settings:
Tether your phone using USB, then:
Open device manager and find "Remote NDIS based Internet Sharing Device"
Then go to properties, advanced, select network address and assign a value.
That's it.
Zibri said:
I just found an easier way to avoid windows (10) to generate a new network number and reset the settings:
Tether your phone using USB, then:
Open device manager and find "Remote NDIS based Internet Sharing Device"
Then go to properties, advanced, select network address and assign a value.
That's it.
Click to expand...
Click to collapse
This seems to work, as long as you don't restart your PC. After every restart it still counts 1 Number up.
Still a neat trick as long as the PC keeps running, thanks for posting it :good:
I am still searching for a better one....
Hi everyone,
I am trying to get my head around on what can be done to bypass the tethering filter on 3UK.
Below are different scenarios I have come up with and would like any volunteers who could try out any of the following for me. Of course I will be doing these myself as and when time permits but its always helpful to have others view on it too.
Please and I say please, do not turn this thread into Right and Wrongs of tethering or Terms and conditions of 3 mobile contracts. Please keep your views to yourself regarding if its lawful or unlawful or ethical or unethical or whatever you seem to come up with. I would like this to be a productive thread, instead of random comments on tethering.
Option 1: Use SSH Tunnel * Should I use SSH tunnel on my phone and use my PC to connect to it to use internet. Is there a reverse option?
Option 2: Use OpenVPN Install OpenVPN on your pc, and connect your phone to your pc using default VPN function on your phone in my case GT-I9100 comes with VPN function. You could also try to reverse this method and install OpenVPN on your phone and use your PC to connect to it. *
Option 3: Use the above two together in combination As the heading says, use SSH tunnel to connect to your OpenVPN.
Option 4: Use a proxy on your pc and connect to your phone or reverse, install proxy app on your phone and point your pc web browser to that proxy address. You could use the SSH tunnel here to connect too.
So, tools at hand are vpn with any encryption available, ssh tunnel, proxy server.
Tools to ignore - TOR (onion), garlic based TOR like, changing User Agent on web browsers or paid VPN.
3 UK has two APN settings, three.co.uk for mobiles (NATd ip address) and 3internet (dongle users) has external IP address and I believe it’s an Open NAT or no NAT.
Please feel free to mix and match any options and also share your views on what is technically possible.
I hope to see something useful and learn a bit more. Even if we fail to achieve the desired results, it will still be enlightening to find the facts on how 3 detects tethering.
I
Code encode decode
Found on giff gaff forum useful info
Well, they have a few ways..TTL: In my opinion, the most likely telltale signal of tethering. For example, *iOS packets originate with a TTL of 64, so if they see anything else they know something is up. This is very easy to check, as the TTL is checked by each router as the packet is handled. (the address on the envelope - doesn't require opening the letter, to use an analog analogy)APN: Another possible sign of tethering is data being routed over the access point set up for the built-in tethering feature. But giffgaff does NOT have a separate APN for Tethering. Again, this is easy to check without deep packet inspection.User-agent: This is where carriers would need to get heavy-duty equipment and a willingness to be invasive to detect tethering. Your browser sends information about itself to remote web servers, and this information could be checked. I do not think giffgaff is doing this (to detect tethering at least,) as it is not proof of tethering since anyone can easily use another browser on your phone that reports a different User Agent.Web Sites Visited: Again, highly invasive, though it doesn't require DPI. If you're using the DNS servers of the carrier, they could look for requests for certain domain names like windowsupdate.com etc. This wouldn't be proof either, though.I would bet that they are using TTL. So tunneling the TCP/IP packets that way probably resets the TTL to the default of the WAN interface on the phone.
Code encode decode
Why do you have to make 2 threads for the same subject?
Well I wasn't sure at the time of writing first one if I had to go down the route of testing which the second one is for. So, the first one is literally to know if its happening to new contracts only and second is for testing different scenarios and finding how.
Hope this helps and if not then jog on.
Code encode decode
Invincible29 said:
Hope this helps and if not then jog on.
Click to expand...
Click to collapse
Less of the attitude please and more of the reading of forum rules. Stick to one thread for the same thing.
Thread closed, use the other one (it was created first).