[GUIDE] Creating infrastructure Wi-Fi with Windows 7 - TouchPad General

So I just got my touchpad today, and was made aware that it doesn't support ad-hoc networks, which I use somewhat frequently to share a wired connection via my laptop. I just bypassed it by using my phone as a hotspot (android creates infrastructure), but after a little searching I found a nice little video on youtube about how to create an infrastructure network from Windows 7.
http://www.youtube.com/watch?v=klHzMyYFGeQ
Lets all give this guy some thanks.
For those of you that can't/won't go to youtube, the general gist of it is that you need an unused wifi network adapter and an internet connection. You then set up the network by running as administrator:
Code:
netsh wlan set hostednetwork mode=allow ssid=testwifi key="123456789012"
Then you share the internet connection with the (maybe new) Microsoft virtual WiFi Miniport Adapter. Now you're ready to start it with:
Code:
netsh wlan start hostednetwork
And you can check its status via:
Code:
netsh wlan show hostednetwork

cannot create Microsoft virtual WiFi Miniport Adapter
dorsai3d, thanks for the information. I had been trying to use my Sprint TP2 as a wifi router, and was getting really frustrated. If this would have worked, it would have been awesome.
So what I am trying to do is use USB to theter to my Windows 7 64bit laptop, and use the Wireless adapter on the laptop in infructure mode to theter to Touchpad.
When I run the
"netsh wlan set hostednetwork mode=allow ssid=testwifi key="123456789012" command, it runs fine (as admin).
"The hosted network mode has been set to allow.
The SSID of the hosted network has been successfully changed.
The user key passphrase of the hosted network has been successfully changed. "
++
This is the error I get when I run "netsh wlan start hostednetwork"
"The hosted network couldn't be started.
The group or resource is not in the correct state to perform the requested operation."
++
output for
"netsh wlan show hostednetwork"
Hosted network settings
-----------------------
Mode : Allowed
SSID name : "testwifi"
Max number of clients : 100
Authentication : WPA2-Personal
Cipher : CCMP
Hosted network status
---------------------
Status : Not available
+++
No virtual adapters were created, like in the video, nor was there one to begin with.
So I am guessing that is the crux of my problem
I use Ad-hoc mode quite often, I have Intel 4965AGN for my wifi adapter on this laptop.
and I use my 3G on the Touch Pro 2 at my primary internet at home
Anybody running into similar issue, or might know whats going on. Will appreciate any help, thanks.
loving my touchpad btw

As this is a relatively new feature, you may need to reinstall/update the drivers for your current wifi adapter. I'm not a big networking person, so I'm afraid I won't be too terribly much help, but maybe we can get this all headed in the right direction. I'm afraid it looks like there won't be a solution for getting windows mobile to create an infrastructure hotspot if it's one of the new selling points in Windows 7.
For reference, I'm using the Intel WiFi link 1000 BGN and the virtualized adapter was already there for me.

Yup, driver issue. Looks like I might have to buy a second wireless nic that supports this feature. Just knowing that this is possible it a great start
now to find a cheap usb wifi nic that dose support this. I have a Intel 5300AGN on my work laptop, I think that is supported.
thanks for your help though.
edit:
lookes like even Intel 5300AGN dose not support VWIFI

I made the infrastracture Wi-Fi with windows 7 and it works perfectly with my Android S3 phone and tablet but when I try to connect my Iphone with it....My lan connection frezees and I am unable to access internet at all .....
Then I have to disconnect my Router and restart it...
I surfed and I guess I have o connect to the hotspot through VPN.....But I dont know the details to fill in....
The Iphone 4s ask the following details for VPN connection
L2TP PPTP IPsec
Please help me !!!!!!

Related

***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
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

[SOLVED] Help! TCPClient via Wifi .NET Compact Framework

SOLVED - But I'm not sure how, I was redesgning the app so that I could put it up here for other leo owners to test and gave it one last go to take a screenshot of the error to show people what I was looking for and viola it starts working (I never changed the TCP code) sorry anyone who finds this who has the same issue but it just randomly started working!!
Hi fellow devs,
After a massive googling session I have not been able to find an answer to the following issue:
I am writing a TCP client/server app with my PC as the server and the client being my HD2.
I am writing the app in VB.net using the .net compact framework 3.5 and the windows mobile 6 sdk.
I just cannot get the following code on the client side to work over wifi:
Code:
Dim ParsedIPAddress As IPAddress = IPAddress.Parse("192.168.1.10")
Dim client As New TcpClient()
client.Connect(ParsedIPAddress, 7209)
I get the following exception:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Click to expand...
Click to collapse
If I connect the phone via active sync it will work and I can send and recieve data ok so it appears there is no issue with the code itself.
While connected via active sync - if I turn off the server side app I get the following exception:
No connection could be made because the target machine actively refused it
Click to expand...
Click to collapse
However the exception message remains as the original if I do the above but using wifi so it just is not able to establish a link at all (or not even trying) using wifi??
-----------------
I have tried:
1. Ensuring that windows firewall on the server is off and not getting in the way of anything
2. Ensured that my mobile has got an active wifi connection and can see the machine (wifi remote control apps such as GRemotePro work ok)
3. Turned off all other types of data connection (GPRS,3G) to make sure my mobile has only one route out
------------------
Is there anyone out there who has successfully got TCP to work with the .net compact framework and if so how???
Should I be using another class rather than TCPClient maybe the underlying Sockets class?
Any help would be greatly appreciated.
Cheers,
Prime.
P.S. I don't mind if people only have a solution in C# I'm happy to do any translation etc...
Socket class also fails
Ok so I've tried the socket class now as well and that fails in exactly the same way over wifi, ensured that I can ping my device and ping my pc from the device so clearly the underlying hardware is working just not for the TCPClient or Socket... Any ideas anyone?
Have you enabled port forwarding for the relevant port and IP address in your wireless router?
That's the only thing that springs to mind for me.
Thanks for the reply but...
Hey John,
Thanks for trying to help although unfortunately this does not bear any consquence in this particular situation, you only need to do port forwarding if Network Address Translation is going on between you and the end point. In this case the endpoint (IP + Port) is on the internal LAN with no address translation in between. It appears the the internal WIFI adapter is not being accessed correctly from the application i.e. this is an internal issue on the phone not an issue with the network in general as I can run the same code via active sync and it works also I can convert the project to a standard windows pc app and run the same code from a pc and it works. Oh and of course every other damn (this is really wierd) wifi app I've got works so something with the .net cf and wifi maybe??
Cheers,
Tony.
A development...
Ok so I have dug out my old Orbit II just to see if this was device related and low and behold it is ARGGGHHH!!! The app works just fine on the Orbit II over wifi.
Does anyone know of any policies, security or otherwise, that would stop the HD2 (leo) from being able to use wifi from the .net cf?
<<--delete-->>
Generic reasons for communication failures
Hi
This is a pretty generic problem, I'm afraid you can't give an exact idea of where is the problem so I can't give also an exact solution.
Usually a communication problem is due to one of this three
1) The server does not listen or does not receive
2) There is a problem with the network
3) The client does not make the call
Type 1 should be checked trying to connect to the server with a PC or a laptop. You should be able to make the client run in a PC.
Usually when a (web) server has a (web) tcp service stopped, when you try to connect to it it rejects the connection (this is what that of "the target machine refused it" sounds to me). Start then the (web) service on the server. Change (web) for your application.
My advice is that you should have something in the server side where you could run a wireshark sniffer. Then you would see all the traffic coming from the PDA and see if your client is sending packets.
Type 2 are the ones that can be checked with a ping. Maybe there is a firewall somewhere dropping the packets.
Type 3 may be due to several things
a wrong code (I don't know, there is a lot of time since I made programs)
you're trying to connect to a dns name that can't be resolved. Try with IP address.
You have a wrong network configuration. The server should be in the same network but client is not able to get the server's (or the router's) MAC with the ARP protocol. So it doesn't make the call.
I hope it helps.
Regards

[Q&Soln] USB tethering creates endless new "Windows networks"

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....

HELP!! School Wifi Doesn't Work

The wifi at my school has been blocked. I have used the command prompt to confirm that they haven't changed the password or anything else like that. The thing is that SAMSUNG and iPhone phones can still connect to the wifi with no issues whatsoever and even if they forget the network they can still connect afterwards so I don't think it's anything to do with MAC filtering but for any other phone it just says 'Saved, Secured' or 'Authentication Error' sometimes.
Please help I need this wifi because going on my phone is the only thing I do at lunchtime and I sometimes need it to search up stuff like mark-schemes for homework and without wifi this is impossible.
I even stupidly asked the school helpdesk (IT Guys) about this but got in trouble for it and had my sixth form application unbelievably taken away from me, but screw those guys.
I have rooted my phone so I'm open to any suggestions and yes I have tried the airplane mode trick, it doesn't work, yes I have tried changing my MAC address, doesn't work.
I'm eternally grateful to anyone that can help me fix this and so will be my friends who are also without wifi.
Oh, and some info that I got from cmd about the network(computer used LAN connection):
DNS Servers: 172.16.0.1
172.16.0.15
172.16.0.16
NetBIOS over Tcpip: Enabled
Tunnel adapter Reusable ISATAP Interface <B3B22F1C-054E-4637-8567-C0C7D7A1CC34>:
Media State: Media Disconnected
Connection-specific DNS Suffix: ahs.local
Description: Microsoft ISATAP Adapter
Physical Address: 00-00-00-00-00-00-00-E0
DHCP Enabled: No
Autoconfiguration Enabled: Yes
------------------------------------------------------------------------------------------------------------------
Got this info from school laptop connected to wifi
Version:1
Type : Wireless LAN
Name: AHS-CWLAN
Control Options
Connection Mode: Connect automatically
Network Broadcast: Connect only if this network is broadcasting
AutoSwitch: Do not switch to other networks
Connectivity settings
--------------------------
Number of SSIDs: 1
SSID name:"AHS-CWLAN"
Network type: Infrastructure
Radio type: [ Any Radio Type ]
Vendor extension: Not present
Security Settings
--------------------------------------------
Authentication:WPA2-Personal
Cipher:CCMP
Security key: Present
Key Content(The Password): ahsfva179hj13157
Thanks for reading, no really I appreciate every single reply
Edit: I use Alcatel Onetouch Idol 3
Was it just that one day you went to connect to wifi and it no longer worked? Is everyone affected that does not have either an iPhone or Samsung device? Can any laptop connect?
PragmaOnce said:
Was it just that one day you went to connect to wifi and it no longer worked? Is everyone affected that does not have either an iPhone or Samsung device? Can any laptop connect?
Click to expand...
Click to collapse
Really sorry for late reply, had to go to school of course.
And yeah it was just a day out of the blue and the WiFi stopped working for people without a SAMSUNG or iPhone but even some iPhones don't work with the WiFi anymore. I'm pretty no other phones can connect to the WiFi but could be wrong.
School laptops can still of course connect to school WiFi perfectly.
Thank you so much for replying, really appreciate it. :good:
Please HELP!
PragmaOnce said:
Was it just that one day you went to connect to wifi and it no longer worked? Is everyone affected that does not have either an iPhone or Samsung device? Can any laptop connect?
Click to expand...
Click to collapse
I learnt today other phones apart from SAMSUNG and iPhone can connect.

Help sharing Dongle internet from laptop to Redmi Note3

Hi,
I have connected laptop to internet using dongle. Now, I want to share the laptop internet with my Android and Windows mobile by making my laptop as hotspot. To do this, I followed online tutorial for this.
http://www.instructables.com/id/How-to-set-up-a-wireless-hotspot-From-WiFi-Windows/
It is nothing but executing following commands from cmd (Run as Admin):
netsh wlan set hostednetwork mode=allow ssid=myhotspot key=password
netsh wlan start hostednetwork
Then new network Adaptor by name "myhotspot" is created. Now, I right click on my dongle adaptor and select Properties. In the Sharing Tab, I checked the checkboxes and select "myhotspot" in the dropdown.
Now, when I connect to "myhotspot" on my Redmi Note3, it is connected but internet is not working on the mobile.
Can someone please guide me in troubleshooting the issue?
Or let me know the alternate way of doing it.
Also, please let me know if any other information or clarification is required from my side.
usually you will need two wireless dongles, one for the laptop internet (or connect it with wired lan connection) and one for the Access Point.
if you have two wifi adapters then perhaps your issue is somewhere with DNS getting assigned the wrong ip, I suggest you buy/use a router for hotspots, since using a normal wifi adapter will be slow and have limited range.
Thanks oxyg for the reply. I guess the issue is not clear. I have connected the following Vodafone dongle to laptop to connect to Internet.
https://www.google.co.in/search?q=v...UICCgB&biw=1366&bih=656#imgrc=uRQ-IIVjYM9jmM:
Now, I want to make my laptop wifi hotspot so that I can share dongle internet with my Redmi Note3 and other devices.
vijay.gupta said:
Thanks oxyg for the reply. I guess the issue is not clear. I have connected the following Vodafone dongle to laptop to connect to Internet.
https://www.google.co.in/search?q=v...UICCgB&biw=1366&bih=656#imgrc=uRQ-IIVjYM9jmM:
Now, I want to make my laptop wifi hotspot so that I can share dongle internet with my Redmi Note3 and other devices.
Click to expand...
Click to collapse
Download connectify And setup the hotspot!
P.S-its a paid app!
Thanks NVDX11 for the reply. I know about connectify, however, it is paid app (as you also mentioned). Please help me with the free method to share dongle internet.
If you can live with using it over USB, you can get the Mi PC suite, that can get the RN3 to get it's internet from the pc it's connected to.
Hmm......that can be the solution but needs phone to be connected to laptop always......can the laptop internet be shared wirelessly to redmi note3?
is it not possible?
vijay.gupta said:
Hmm......that can be the solution but needs phone to be connected to laptop always......can the laptop internet be shared wirelessly to redmi note3?
is it not possible?
Click to expand...
Click to collapse
Hey, you can use mHotSpot to share the internet from your USB dongle to Wireless,
Ive been using that for quite sometime now, but one disadvantage is that the range that you will get from a Laptop Wifi card would be very less and would work only in a short range.

Categories

Resources