How to Create an Ad Hoc Network
What to Know
- In Command Prompt, select Run as Administrator. Enter the commands below. In Network and Sharing Center, choose an adapter.
- Go to Properties > Sharing. Enable other users to connect. Choose an interface from the ad hoc network. Verify through the other interface.
- Windows 7/Vista: In Network and Sharing Center, select Set up a connection or network > Set up a new network. Follow instructions.
Ad hoc wireless networks, or computer-to-computer wireless networks, are useful for internet connection sharing and other direct wireless networking without a router. Learn how to set up a Wi-Fi network to connect two or more computers using Windows 10, Windows 8.1, Windows 7, and Windows Vista.
Set Up an Ad Hoc Network on Windows 10 and 8.1
Windows 10 doesn’t have a proper ad hoc network feature. You can, however, create something that looks and behaves like the ad hoc network feature on previous versions of Windows.
Before setting up an ad hoc network on Windows 10 and 8.1, you’ll need Windows and client computers with wireless network adapters.
-
Go to the Windows desktop search and enter Command Prompt.
-
Right-click the Command Prompt result, then select Run as Administrator.
-
Enter the following command in the command line. For the ssid= variable, replace AdHocNetwork with the name for your network. For the key= variable, replace yourpassword with the password for your network.
netsh wlan set hostednetwork mode=allow ssid=AdHocNetwork key=yourpassword
-
Enter the following command to start the new network.
netsh wlan start hostednetwork
-
Minimize or close the command prompt window, then open Control Panel.
-
In the Control Panel, select Network and Internet.
-
Select Network and Sharing Center.
-
Select Change adapter settings.
-
In the list of network adapters on the computer, right-click the adapter that you’re connected with, then choose Properties.
-
Go to the Sharing tab.
-
Select the Allow other network users to connect through this computer’s Internet connection check box. Then, select the Home networking connection drop-down arrow and choose the interface from the ad hoc network.
-
Select OK to save the changes.
-
Return to the Network and Sharing Center to verify that the ad hoc network is connected to the internet through the other interface.
-
You can now connect to your computer’s ad hoc network.
Windows 7, and Vista
To create an ad hoc network in older versions of Windows:
-
Select Start > Control Panel > Network and Internet to go to the Network and Sharing Center.
-
Select Set up a connection or network.
-
Select Set up a new network, then select Next.
-
Choose a name for the ad hoc network, enable encryption, and check the box to save the network. The wireless network will be created and the wireless adapter will start broadcasting.
-
On the client computers, locate the new network and connect to it.
Limitations of Ad Hoc Wireless Networks
There are limitations of ad hoc wireless networking:
- Ad hoc wireless networking only includes WEP-only security.
- In this type of network, computers need to be within 300 feet.
- When the host computer disconnects from the network, other users are disconnected and the ad hoc network is deleted.
After your ad hoc network is set up and running, learn how to share a single internet connection on your ad hoc network.