How to set up an adhoc network in Windows 10


Want to set up an adhoc network in Windows 10? Read the article to know about the step by step procedure to set up an adhoc network in Windows 10 using command prompt.

Adhoc network allows a user to make wireless protocols over times when there is a need of connecting 2 systems. It is a good alternative over connecting two PCs or laptops with a LAN cable. But proper drivers are required to avail the adhoc network setup option. If you don't have the wireless hardware and its driver installed on your PC, you cannot set up an adhoc network.

Checking for adhoc set up


In order to check whether you have such drivers, simply navigate to the Network Sharing Center and see the text below to the "Set up a new connection or network" option. If the text contains adhoc network, in addition to Setting Up Broadband, Dial-up or adding VPN connections then you're having the drivers installed and you can set up the adhoc network. If not (see the screenshot below), install proper drivers!

Looking for adhoc option in Network and sharing center screenshot in Windows 10

About setting up adhoc on Windows


After Windows 7, no OS from Windows allows to set up an adhoc network, even if proper wireless drivers are installed. Windows 10 is not an exception!

But there are some tricks by which on can do adhoc network setting in Windows 10. Here is the simplest and 100% working method.

Note that this trick works properly on Windows 8 and Windows 8.1 also.

Setting up an adhoc network in Windows 10


Below is the step by step guide to set up an adhoc network in Windows 10 on a PC.

1. Open Command Prompt as an administration. In order to open it as an administrator, right click on it and click "Run as Administrator".

2. Enter the following command in it.

"netsh wlan set hostednetwork mode=allow ssid=adhocnetwork key= mehdi1234"

In the above command, "mehdi1234" will act as the password for your adhoc network. You can keep another one!

3. Press enter!

Setting up adhoc network in Windows 10 using command prompt steps

4. The hosted network mode has been set to allow. Now, enter the following command after the above.

"netsh wlan start hosted network"

5. Press enter.

Setting up adhoc network in Windows 10 using command prompt steps

6. The hosted network has started! Close command prompt.

Screenshot of Network Sharing Center before setting up Adhoc in Windows 10
Screenshot of Network Sharing Center before setting up adhoc network in Windows 10.

Screenshot of Network Sharing Center after setting up Adhoc in Windows 10.
Screenshot of Network Sharing Center after setting up adhoc network in Windows 10.

You can also stop the network by entering the following command in command prompt or keep it forever.

"netsh wlan stop hosted network"

Stop adhoc network in Windows 10 using command prompt steps

Set it up- What now?


Usually adhoc network is set up for playing games in a multiplayer mode. It is less rated for file sharing!

So if you have set up an adhoc network on Windows 10, call you friends and have fun playing games in multiplayer mode like Counter Strike!


Related Articles

My first experience with Windows 10 Technical Preview

I have taken the bite and installed Windows 10 beta to get the fresh feel of the Windows 10 Technical Prevew release. Read my experience with Windows 10 and how do I feel about it in comparison with Windows 8 and Windows 7.

How Fedora Linux is better than Windows OS?

Are you planning to shift to Linux operating system? Want to know about Fedora OS? Here are the features of Fedora OS that outperforms Windows. Read the article to get the pros and cons of Fedora OS.

Windows 9 rumoured features, release date and news

Are you waiting for Windows 9 and want to know what all features are coming in this new OS? Want to know if it is a dud just like Windows 8 or is a much better experience? Read our article to know about the rumors, expectations, release date and price of Windows 9.

How to explore Windows 10 OS Home Tab?

Have you managed to download Windows 10 OS technical preview version by now? Did you notice a change in the file explorer of Windows 10 operating system? Please read further to know about the new Home tab feature of the file explorer on Windows 10. Here, I have discussed ways to access the Home view in explorer window as well as explained the stuff contained in Home tab of Windows 10 file explorer.

More articles: Windows Windows 10 Windows 10

Comments

Guest Author: Ghasem18 Aug 2015

Thank you for the helpful information. It solved my problem.

Guest Author: hheinzchen03 Dec 2015

Thanks a lot for the helpful guidance. Now I can use my phone as keyboard (logitech touch mouse) even if I am offline.

Guest Author: Agostinho10 Dec 2015

It is a very useful and it works!
However I have 3 points:
1. By mistake I disabled that connection and it simply disappeared and now I cannot find it anywhere so do you know how to enable it back?
2. Let's say I don't have a WiFi router and have only my cable modem linked to my laptop, but I want to share this adhoc connection with my mobile device in order to allow it to access internet. Is it possible?
3. How can I define the IP range it uses?

Guest Author: james12 Jan 2016

I have the same problem as Agostino -1st point. I'm getting the response: The group or resource is not in the correct state to perform that operation. The hosted network couldn't be started.

Please guide what is to be done.

Guest Author: Leonardo29 Dec 2017

@james: Try to update wireless driver or use WiFi Direct Access Point app if you have Windows 10: https://www.microsoft.com/store/p/wifi-direct-access-point/9n4lnn4hk7v6

Guest Author: Ryan09 May 2018

This isn't an ad-hoc network, its an Infrastructure network. For it to be ad-hoc you would need connectiontype=ibss.

Guest Author: Phunk09 Mar 2021

To create a bootable batch file creat a txt file on desktop and rename it to adhoc.bat for example. Now edit the file with notepad and set it like this:

netsh wlan set hostednetwork mode=allow ssid=NAME key= PASSWORD
netsh wlan start hosted network
pause
netsh wlan stop hosted network

Save the file and to execute, right click on it and run as Administrator.



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: