If your PC has internet connection via a wired router, you connect your computer to router using Ethernet cable, you can turn your PC into a mobile hotspot or Wi-Fi hotspot to share your internet connection with other devices like PC, Mac, smartphones and tablets. Since Windows 7, you can create Wi-Fi hotspot on Windows computers to allow other mobile phones or computer to connect to your PC and access the internet through it. You can set up Ad Hoc WiFi hotspot Internet connection and sharing in Windows 10, 8 and 7 following below steps.
- With Windows 10 Anniversary Update builds, you can create a mobile hotspot under Windows 10 Settings, no longer need to open the Command Prompt in order to create Wi-Fi hotspot on your Windows 10 PC.
- Share internet connection from mobile phones:
If you like to share your cellular data or mobile phone from an Android phone or iPhone, you can also turn on the Personal hotspot or Personal hotspot on your mobile phone, then connect up other wi-fi enabled devices to your wi-fi hotspot on the mobile. See this guide to use Samsung as Wi-Fi hotspot and this tutorial to set up personal hotspot on Samsung Galaxy Grand Prime.
Create Ad Hoc Wireless Connection in Windows 10
To create Ad Hoc wireless connection on Windows computer and share your internet connection between PC and mobile phones are very easy although not very intuitive. To do that, run the Command Prompt as administrator on your PC, then type in below command and press Enter.
netsh wlan set hostednetwork mode=allow ssid=betterhostreview.com key=betterhost
You will then get response in the Command window like below.
You can change SSID and Key if you want. They refer to your Wi-Fi hotspot or mobile hotspot name and password. Once a new Wireless connection created, you will also need to enter the following command to start this wireless WiFi connection on your PC.
This command to start Ad hoc wireless connection will be:
netsh wlan start hostednetwork
Now you can go to connect your mobile phones, such as Android, Samsung, iPhone, iPad, Sony, LG, HTC, Motorola, Nexus, to the wireless connection on Windows 10 PC and access the web through the mobile hotspot on PC. By doing so, you can share internet connections between computer and mobile phones even when you do not have a wireless routers. This can also save your cellular data on the cell phone.
Remember that the SSID is your hotspot name, the Key is your Wi-fi hotspot password.
When you do not need to use the Ad Hoc WiFi hotspot internet connection in Windows 10, you can run below command to turn off the mobile hotspot in Windows 10.
netsh wlan stop hostednetwork
Ad Hoc WiFi hotspot wireless connection in Windows 10 troubleshooting
Sometimes you may run into problems in setting up, starting or connecting to hosted network in Windows 10. Check out below tips.
How to quickly access Command prompt in Windows 10?
You can righ click on the Start button from the bottom left corner of Windows 10, then choose Command prompt or Command Prompt (Admin) from the menu. You can also refer to this guide to quickly open Command window from here in Windows Explorer on Windows 10 PC.
How to check if your PC supports Ad-hoc connection or not?
Simply run this command in the Command Prompt (Admin) window:
netsh wlan show drivers
Can’t connect to Ad-hoc wi-fi connection from mobile phone?
Sometimes you may be able to create the AD hoc connection and start it in Windows 10, but when you trying to connect to it on a mobile phone, it says the password is incorrect. Try to avoid special characters in the mobile hotspot password, you can use 8 numbers, 8 letters, or both of them.