[Guide] Alternate to Ad-Hoc Wi-Fi Network for your Android Device
-This guide is for those who do not have a Wi-Fi router in their network. The guide will teach you how to access the internet in your Android device, where by the internet is only accessible in your Laptop though LAN.
-Before when Galaxy S2 had Gingerbread, there was a modified WPA_Supplicant here. However it does not work with ICS and above and no one else have come up with a updated mod.
-However if you have Windows 7/8 [does not work in XP] then you can try setting up a Virtual Wi-Fi adapter which works as good as a WI-Fi access point.
-There are many other ways like Connectify and other softwares, but they have not worked for and more over why to bloat the system when there is a native feature support in PC.
-There is another alternate called reverse tethering. But that will require root and it only works for me sometimes. More like when I get lucky. You can try this app or this guide.
a. Windows 7/8
b. Administrative access for Windows PC
c. Wi-Fi enabled Laptop or an Desktop with Wi-Fi adapter
3. Steps: Step 1: Press start and type cmd and right click on it click on "Run as Administrator"
Step 2: Type netsh wlan set hostednetwork mode=allow ssid=NAME key=PASSWORD and press enter Note: NAME is the name which you want to give for the WI-Fi accesspoint and PASSWORD is the security key which is required for accessing the Wi-Fi AP in Android device. Also the password should be at least 8 character long.
Now wait till you get three sets of line confirming the command as attached in screen shot. It sometimes may take around a minute
Step 3: Type netsh wlan start hostednetwork and press enter. You will again get a confirmation message. By this step the new Wi-Fi access point will be broadcasting and when you scan it in you Android device it will appear in the list
Step 4: There is one more step to make the internet pass through the newly created Wi-Fi access point. The internet should be shared via LAN adapter. To do that follow the steps as below:
a. Start -> Run (or press Windows key + R)
b. Type ncpa.cpl and press enter
c. You will see Network Connections now
d. Here you will find a new network adapter called "Microsoft Virtual WiFi Miniport Adapter". This one is created when the "Step 3" is done as above. Note down the connection name. In my case it is "Wireless Network Connection 2"
e. Now identify the one which is connected to your LAN network where internet is accessed (this can be LAN adapter, WiFi adapter or even dialup connection in case of tethering)
f. Double click on that connection identified under step (e)
g. Click on "Properties"
h. Click on "Sharing" tab
i. Tick on "Allow other network users to connect through this computer's Internet Connection"
j. Under the drop down list for "Home networking connection" select "Wireless Network Connection 2" [or which ever it is in your case]
k. Click on OK and close all the dialogue boxes
Step 5: Now scan for Wi-Fi in your Android device and you can find the Wi-Fi with whatever SSID you created. Connect to it and enjoy the LAN internet in your device.
Note: If you wish to turn off the Wi-Fi AP you created then you can type netsh wlan stop hostednetwork in the command prompt and press enter. The next time you restart your PC you can directly do the "Step 3" above and you are good to go.
Also you if you wish to change the SSID and/or password later do only the "Step 2" and "Step 3" as above.
1 - Wi-Fi is not turned on in PC
You might get an error stating as below when you try the "Step 3":
The hosted network couldn't be started.
A device attached to the system is not functioning.
This is because the WI-Fi adapter is turned off in your PC. Just turn it on which usually will be a physical button or a function key in your keyboard. Now try "Step 3" again and you shouldn't be getting the error.
2 - Insufficient resources error
You might also get an error stating as below when you try the "Step 3":
The hosted network couldn't be started.
The group or resource is not in the correct state to perform the requested operation.
This can happen if the Virtual WiFi Miniport adapter is not working properly. Try the below steps to resolve it:
a. Under network connections, if you already have a Virtual WiFi Miniport adapter then make sure its not disabled. If yes enable it back by right clicking and selecting enable.
b. OR - if you don't find the WiFi Miniport adapter at all then do as below:
i. Open Run and type "devmgmt.msc" and press enter
ii. Now you will get Device Manager window. Here expand the Network Adapters tab.
iii. Identify the actual WiFi adapter and right click on it and select disable.
iv. Now right click on it again and select enable
After this the adapter settings will have rested and the "Step 3" should be a no problem.
This is my second guide here in XDA. Hope it was useful and helping you enjoy the internet in your device. Do post your comments here if you have tried it out. Also do not hesitate to post here for any queries.
nice try, works fine! But: I would prefer a solution that can connect directly over wifi, means ice cream sandwich can see and log on to adhoc networks. Anyway: thanx for this, oliaros
Well but the thing is virtual wifi adapter is much for efficient and secured than ad hoc network. Even if you want to set up the ad hoc it will take the same amount of procedure. Just that you will be using the GUI and not the command prompt. But do note that windows 8 has no ad hoc feature
Only draw back of the this method is that you need wifi adapter supporting virtual wifi and you should be on Windows 7/8.
Android updates released as OTA packages are very easy to apply,but they … more
26 Aug 2014
By Tomek Kondrat
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?