Internet, Networking, & Security Home Networking How to Create an Ad Hoc Network Set up an ad hoc network and connect on the fly by Melanie Uy Writer Former Lifewire writer Melanie Uy has 5+ years' experience writing about consumer-oriented technology and is an expert telecommuter. our editorial process Melanie Uy Updated on August 22, 2019 Tweet Share Email Hero Images / Getty Images Home Networking The Wireless Connection Routers & Firewalls Network Hubs ISP Broadband Ethernet Installing & Upgrading Wi-Fi & Wireless Ad hoc wireless networks, or computer-to-computer wireless networks, are useful for internet connection sharing and other direct wireless networking without a router. Set up your own Wi-Fi network to connect two or more computers using the steps below. It'll take about 20 minutes. Instructions in this article apply to 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 actually 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. Was this page helpful? Thanks for letting us know! Get the Latest Tech News Delivered Every Day Email Address Sign up There was an error. Please try again. You're in! Thanks for signing up. There was an error. Please try again. Thank you for signing up. Tell us why! Other Not enough details Hard to understand Submit