How to Create a Network Computer Computer

In Windows 7, you could create an Ad-hoc connection using the Create Connection Wizard by choosing Computer-to-Computer Wireless Network Settings. Such a network can be useful for sharing files, games, and other purposes, provided that you have two computers equipped with a Wi-Fi adapter, but no wireless router.

In recent versions of the OS, this item is absent in connection options. However, setting up a computer-to-computer network in Windows 10, Windows 8.1 and 8 is still possible, which will be discussed later.

Create an Ad-Hoc Wireless Connection Using the Command Line

How to Create a Network Computer Computer

You can create a Wi-Fi Ad-hoc network between two computers using the Windows 10 or 8.1 command line.

Run the command line as administrator (for this, you can right-click on the “Start” or press the Windows X keys on the keyboard, and then select the appropriate item in the context menu).

At the command prompt, enter the following command:

Pay attention to the item “Hosted Network Support”. If “Yes” is indicated there, then we can create a wireless computer-to-computer network, if not, I recommend downloading the latest drivers on a Wi-Fi adapter from the official website of the laptop manufacturer or the adapter itself and try again.

If the hosted network is supported, enter the following command:

This will create a hosted network and set a password for it. The next step is to start the computer-to-computer network, which is performed by the command:

After this command, you can connect to the created Wi-Fi network from another computer using the password that was set in the process.


After restarting the computer, you will need to create the computercomputer network again with the same commands, since it is not saved. Therefore, if you often need to do this, I recommend creating a.Bat batch file with all the necessary commands.

To stop the hosted network, you can enter the command netsh wlan stop hostednetwork

That’s basically all about Ad-hoc on Windows 10 and 8.1. Additional information: if there were problems during the setup, solutions to some of them are described at the end of the instructions Distributing Wi-Fi from a laptop in Windows 10 (also relevant for eight).

And suddenly it will be interesting:

  • Windows 10
  • Router setup
  • All about Windows
  • Boot flash drive
  • Virus treatment
  • Data recovery
  • Installation from a flash drive
  • In contact with
  • Classmates
  • Android

Why not subscribe?

Distribution of new, sometimes interesting and useful materials from remontka.Pro. No ads and free computer assistance to subscribers from the author. Other methods of subscription (VK, Odnoklassniki, Telegram, Facebook, Twitter, Youtube, Yandex.Zen)

10/06/2014 at 21:18

And how to connect to such a network with windows 8.1 rt?
It’s just that my phone is giving out wifi so the tablet does not see it.

10/08/2014 at 10:03

Must see without any tricks. Try to temporarily remove the password and see if it sees. Also, you don’t write which phone, but if you can change the network mode, then try b / g

11/29/2014 at 00:58

The phone distributes the Internet via WiFi, Win7 works with it without problems. The tablet on Win8 does not see this access point. An attempt to disable WEP encryption on the phone did not work. What are some ideas? Thank you for the advice!

11.29.2014 at 11:21

Something and no particular ideas. Given the fact that Win 8 on the tablet is full-time, I believe that you will not advise you to install official drivers.

12/21/2014 at 16:48

Thank you very much for the clarification. For half a day I tried to connect a laptop on win8.1 to a stationary computer on win7, to which the Internet cable is connected, I took out the whole brain. It does not connect and that’s it. Before that, there was a netbook under win7 connected without problems. At your advice, I created a network on the laptop and connected a stationary computer to it and voila everything works 🙂

01/11/2015 at 13:18

Did everything as it is written, created a network, but the second laptop does not connect to it. He writes that the key is not correct, although he entered everything correctly.

01/12/2015 at 07:47

For starters, try setting some simple password that cannot be mistaken in (only numbers) to exclude the possibility that you still made a mistake somewhere.

02/12/2015 at 22:47

Did the same thing writes a password mismatch? What did you do wrong? In the netsh wlan set hostednetwork mode = allow ssid = network-name key = password-to-connect location password-to-connect section wrote 123123123 and anyway the password mismatch on another computer!

02/13/2015 at 08:24

I myself have not encountered such a situation. Now I searched quickly, but could not find a solution, attributed to problems with the type of encryption and the like. I can’t say anything special. Unless, for starters, install the official drivers on both machines.

02/14/2015 at 22:01

Kostya was also tormented with this problem, I decided it was pretty simple, when you enter the network name and password do not put them in quotes, I did this: netsh wlan set hostednetwork mode = allow ssid = 178 key = 123456789. Removed the quotes and everything went.

02.24.2015 at 18:05

I did everything as it was written, connected locally with a smartphone, but the Internet is not transmitted to the smartphone, I don’t understand what the problems are. Maybe someone knows what to do?

02/25/2015 at 09:32

In order for the Internet to also be transmitted, you need to go into the connection properties (exactly the one that the Internet has) on the computer and enable shared access to it. Also, many antiviruses by default block Internet sharing, so look at the settings too.

04/19/2015 at 03:39

05/07/2015 at 12:53

Everything else coincided, for the first time it even started, but could not achieve the transfer of the Internet. I put a tick for distribution. After I decided to reconfigure everything (rebooted), the first 2 points passed and when I tried to start the network
Writes the following:
Failed to start hosted network.
The group or resource is not in the required state to perform the requested operation.

And yet, you can still more detail the moment with the transfer of the Internet through the connection.

05/08/2015 at 10:19

By group and resource: just manually install the drivers on Wi-Fi from an official source (the site of the laptop manufacturer, as I understand it). For the Internet, we simply note the general access to the connection just for that connection, which serves to access the Internet.

05/30/2015 at 10:38

Created a network through the command line, Wi-Fi sees, but does not even connect to it, what’s the problem? THX

06/10/2015 at 17:08

Did everything as it is written but other laptops still do not see my network

08/06/2015 at 18:33

It worked once and then writes that the group could not start the hosted network or the resource is not in the right state. What happened and what to do?

08/28/2015 at 20:18

Why does 8 not see the network created on 7, although on the contrary everything works?

08/29/2015 at 09:43

I don’t know, as I should see in theory.

03/04/2016 at 19:08

I created a connection, a second laptop connected, but for some reason it says that without access to the Internet. Why is that? What needs to be done so that it connects with Internet access.

03/05/2016 at 07:04

Here it is described in detail, suitable not only for 10, but also for 8. https://remontka.Pro/wi-fi-hotspot-windows-10/

03/20/2016 at 22:22

Thanks, and in 10 ke it worked. Already did not know how to solve such a problem.

01/04/2017 at 18:04

Why I can’t connect from win 10 to wifi on win 7, the network sees and does not connect, writes “cannot connect to this network”

10/08/2018 at 09:22

What you described is not ad-hoc but hotspot, why are you misleading people.
Suddenly, it turned out that none of the existing drivers from my completely newly purchased wi-fi pci-e adapter from Tupolink supports the hosted network, I killed at least one solution all the weekend, the ad-hoc from win 10 was cut as a class (there is an assumption that replaced with useless WiFi direct)

10/08/2018 at 11:39

This is ad-hoc. And Hotspot, which is configured through the command line, works through Ad-Hoc in Windows 10.

10/08/2018 at 11:53

Nope, what is described in the article should create a virtual access point to which other devices are then connected.
And ad hoc is a direct connection between two devices without a virtual access point.
If you look at XP or 7, these are completely different modes (Ad-hoc and Infrastructure), in campaign 10 only Infrastructure remained.
I found an article on how to connect a print server by Ad-hoc ( but there is not complete information and it is generally not clear how to connect a computer from 7 to a computer with 10 in this mode

10/08/2018 at 12:17

And yet, somewhere it was written that if Support for a hosted network = No, then creating an access point is impossible either through the command line or through software.
I checked two softins for two free ones, I don’t remember which ones, they couldn’t, but the paid Connectifay somehow managed (though in the trial version it was only possible to create a connection, there is no access to the Internet and the local network).
Question. How does Connectify create a connection if the Wlan driver does not support it?

10/08/2018 at 12:20

He installs some kind of driver for his virtual device and installs the service, if I’m not mistaken. How technically it works for him. I don’t know, but it works. Yes.

10/08/2018 at 12:32

10/08/2018 at 12:38

If you need a hotspot, then, probably, the connetkifay is the most stable one. On 10-ke it works properly. Somewhere I wrote briefly about him, when they developed a license for me: https://remontka.Pro/connectify-hotspot/
I don’t remember the resources, but there wasn’t anything significant for a modern PC.
There is also a trial version, it is possible to evaluate. It is deleted, if you do not like it, without problems.

10/08/2018 at 15:46

Another such option. If the access point is created on the win 7 computer without the Internet and the win 10 computer is connected to it, in which the Internet is via PPPoE. How can I distribute the Internet there and how to do it?

10/09/2018 at 10:43

In theory, somehow it should be possible (google Windows 10 ICS), but I won’t give clear instructions, you need to experiment, and not what.

04/05/2019 at 20:05

Everything connected, but it works strictly for 4 minutes and disconnects the network. We don’t need the Internet, we wanted to play on the comp-comp system. No one knows what the problem is?
Note: in the line “protection of control frames of 802.11w is supported” stands “no” and did not change anything

04/05/2019 at 20:32

Just an assumption: in the properties of the Wi-Fi adapter on the computer on which the network was organized (in the device manager) in power management, try turning off the saving.

12/10/2019 at 23:24

Hello, I created a connection of kopm on 7-ke. Comp. 7-ka to 7-ke connects without problems, but 10-ka to 7-ke no. Is it generally possible in this case to connect a 10-ku to a 7-ke? Thank!

12/11/2019 at 14:06

In general, I see no reason why I couldn’t connect to the version, so I’m assuming some network parameters, Wi-Fi drivers or something like that. But which ones. I can’t guess.

Your IT assistant

A local network between two computers is a great way to conveniently and quickly transfer files. It can be used both for home use, by connecting several computers in your home, and for work purposes. And despite the fact that Windows 10, like previous versions of Windows, has all the necessary tools for creating and configuring a local network, the procedure for creating it is somewhat complicated for ordinary users.

Creating a local network in the Windows 10 operating system

There are two main ways how you can create a local network. This is the creation of a wireless LAN via wi-fi, or the creation of a local network using a network cable. Both methods have both their pros and cons.

Creating a LAN using a cable

It is worth immediately indicating that you have a wi-fi router at home and all computers are connected to it, no additional efforts are required to create a network. There is already a connection between your computers, so there is no need to connect them additionally to each other. But in most cases, the need to create a local network arises when there is no such connection. In this case, you will need to connect computers directly to each other (modern models can easily be connected with a simple Internet cable). Then, first of all, you should make sure that the “Workgroup” parameter is assigned the same name on each of the connected devices. To do this, do the following:

  1. Press the WinX key combination and select the “System” section from the list (you can also right-click in the lower left corner of the screen to call this list).

Next, you need to configure network discovery settings. Enabled network discovery will allow you to interact with your computer on the local network, while disconnected will block this feature. It is good to be able to switch this parameter, for security reasons. This is done as follows:

  1. Right-click on the network connection icon in the tray (lower right corner of the screen).
  2. Select “Network and Sharing Center.”
  3. To the left of the main window, select “change advanced settings.”

This is already enough if the computers are connected via cables through a router. But if they are connected directly, a number of additional settings should be made. We do the following:

  1. Press the WinX keyboard shortcut.
  2. Select “Network Connections” in the list that appears.
  3. We select a network connection through your device and call the context menu by right-clicking on it.
  4. Go to the “Properties” of the device.
  5. Next, open the component properties (TCP / iPc4)
  6. And we set the settings as in the image below, taking into account the fact that the last digit of the IP address should be different for each computer on the local network.

Thus, we created and configured a local network through a network cable. Computers share each other’s files and printer, which will satisfy our goals.

If you still have questions about creating such a local network, you can watch this.

How to create and configure a wireless network via Wi-Fi connection

A wireless connection is more convenient for most users, although the connection through it may be less stable than we would like. To create it in Windows 10, you have to use the command line. But to simplify the process, which must be repeated every time you turn on the computer, we will immediately consider creating an executable file that will play this command. To do this, create a text file and enter the following block of commands:

Netsh wlan start hostednetwork

In this case, the network name and password must be entered without quotation marks.

Further, when saving the file, we change the format.Txt to.Bat simply by changing the signature of the file format, after the dot in its name. The executable is ready. It should be launched every time you start your device.

After the network is started by this series of commands, another device can connect to it using the password you set for connection and the name of the network.

Configure access to folders on the created network

Now that the local area network between the two computers is installed, we’ll figure out how to open shared access to certain folders. Sharing can be configured both for any single folder, and for the entire drive. Depending on your goals and the level of trust in the user of another computer. For this:

  1. Right-click on any folder for which you want to change access settings and select the “Properties” section.
  2. Go to “Access” and select advanced access settings.
  3. Only the item for sharing this folder will be available to you. Mark it.

Now it remains only to carry out security settings. To do this, there, in the folder properties, go to the appropriate tab and do the following:

  1. In the permissions menu for individual groups, click “Change.”
  2. In the next, choose to add a new group.

Thus, user access to the specified folder was configured. You can do this for any number of folders and users.

Adding a New Device

If you have already configured the local network according to the instructions above, then adding a new device for general use will not be difficult. To do this, just open the control panel of your computer, and go to the “Hardware and Sound” section, and then select “Devices and Printers”. In this folder you will see all connected devices. We do the following:

  1. Select the device for which you want to set sharing. For example, it could be a printer.
  2. By pressing the right button, we call the context menu of this device and select distributed “Printer Properties”.
  3. There, we go, as before, to the “Access” tab and find the item for sharing settings for this printer. Check the boxes to give this access.

Now that the device is open for sharing, you only need to connect it by acting through a computer on the local network. It is done like this:

  1. Select the user whose device you want to use and you should see the device in the public domain.
  2. Right-click on it and select “Connect.”

Connection Issues in Windows 10

If you correctly created and configured a local network, you should not have any special problems. Just make sure:

  • You enter the security key correctly when connecting to the local network via wi-fi
  • The cable is connected securely to both computers.
  • You have given all the necessary access and security rights.
  • All connected devices have the correct IP address if it is not set automatically.
  • In the settings, network discovery of your device is enabled.

In addition, there are a number of specific problems when connecting devices.

For example, if when you try to connect to the device, you receive a standard Windows error about the impossibility of this action, you should take the following steps:

  1. Click WinX
  2. In the list that appears, select “Computer Management”
  3. Next, you need to go to the “Services” section and find “Print Manager” in the list.
  4. Disable this service, restart the computer, and enable the service again. Most likely, your problem will be solved.

Removing LANs in Windows 10

Despite the fact that in most cases it is enough to disable device discovery on the local network using the method described above in this article, there is no need to keep local connections on the computer that are not used.

Therefore, we will consider how to delete an already created local network that we do not need.

This can be done in Windows 10 through the registry. To call it, click WinR and in the window that appears, enter the regedit command.

Caution, any incorrect registry change can harm your computer. You perform these actions at your own risk.

In the registry, follow this path:

There you will find many traces of past network connections with specific names. Just delete those subsections that indicate you are no longer interested in network connections.

We examined how to create a local network using a network cable and using a wireless connection. Now, you can organize a connection between your devices at home or at work for a comfortable and quick transfer of information.