How to create a WiFi Hotspot from an active internet connection in Windows 10 or Windows 8.1 or Windows 8?
There was an option to setup an ad hoc network in Windows 7 to create a hotspot from your laptop, right? But oops! It seems Microsoft forget to add this feature in Windows 10 or Windows 8.1 or Windows 8. But don't worry, it is still there. You just need to give command and it will work fine for sure.
In this post you're gonna learn to create a WiFi Hotspot in Windows 10 or Windows 8.1 or Windows 8 PC to share an internet connection over WiFi. All you need is an active internet connection whether it be from a wired LAN connection or from a 3g modem.
Instructions:
First of all, create a virtual local area network.
- Open notepad and type:
@echo off color 5f netsh wlan set hostednetwork mode=allow ssid=MyWiFi key=passwifi pause

"SSID" is the name of the WiFi Hotspot. You can change the SSID value to any name that you want. And use "key" to set a password. This will create a virtual network adapter.
Save it by any name but the extension should be .bat
For example: save it as "setwifi.bat" - Now again open notepad and type:
@echo off color 5f netsh wlan start hostednetwork pause
- Now run the "setwifi.bat" file as administrator by right clicking on it.
- Similarly, run the "startfile.bat" file as administrator by right clicking on it.
In this way, you have created a virtual Local Area Network. Now you have to connect it to the internet. Follow the steps shown below:
- Now go to "Control Panel" and open the "Network and Sharing Center". There you will see a new virtual adapter.Click the "Ethernet" link (or whatever shows up next to "Connections").

- Click "Properties" > "Sharing" tab. Check the "Allow other network users to connect through this computer's Internet connection" box.
- Use the drop down menu to select the virtual network adapter that you have created. Then click OK and close.

- You should now be able to connect to the internet from the WiFi Hotspot that you created.

- So now to check the things like the channel you are on as well as the number of clients connected to your network. Open notepad and type:
@echo off color 5f netsh wlan show hostednetwork pause
- Again save it by any name but the extension should be .bat
For example: save it as "showwifi.bat"
- Now run the "showwifi.bat" file to see the status and clients of your network.
Enjoy.......!!!
Conclusion
Now every time when you have to create a Hotspot then just turn on your WiFi and Run the "setwifi.bat" & "startwifi.bat" with administrator privileges and you're done.To check the status of your hotspot, run "showwifi.bat".
That's all...!
So now that you have learnt to create a WiFi Hotspot from an active internet connection in Windows 10 or Windows 8.1 or Windows 8, please do share this with others too.
P.S.
A short way to create virtual local network:
- Right click on your desktop
- Go to New Shortcut
- Put the start command into the shortcut.
netsh wlan set hostednetwork mode=allow ssid=MyWiFi key=passwifi
- Again in a New Shortcut, put the command:
netsh wlan start hostednetwork - Similarly for the status of your Hotspot, create a New Shortcut, put the command:
netsh wlan show hostednetwork
- Save all the three shortcuts. And give them an icon if you want.
- Now you have just to open these shortcuts with administrator privileges to start it anytime you want.






This comment has been removed by the author.
ReplyDelete