Useful Tips

We unite two computers in a local area network

Pin
Send
Share
Send
Send


Hello to all! Today we’ll look at a topic how to connect two computers together. And the way I will show 2. So let's get started.

Consider 2 ways:

1. How to connect 2 computers using a Wi-Fi router or Switch.

2. Connect using wire.

I will connect my laptop (with Windows 8.1) and a computer (with Windows 7).

1. A way to connect two computers using a Wi-Fi router, or a switch.

Whoever has a router or switch, connecting two computers is 2 times easier. Even if you have a Wi-Fi point, you connected the computer via a cord or wireless Wi-Fi connection does not matter. This is the same thing, the main thing is that the subnet is the same (for example, 192.168.1.*)

First you need to check that the workgroup is the same, otherwise the second computer will not see the first. We go to the control panel and select the system.

Next, we look at what your working group is. All computers should be the same. If different everywhere, call the same. To do this, click change the settings.

And change the name. The main thing is that this name is the same on all computers!

So, to connect computers, go to the control panel and select the home group.

Next, choose to create a home group.

Next, select which shared folders you want to share.

Next, save the password that will be given to you. You will need it to connect other computers.

Next, you need to connect to this group on other computers. We also go to the control panel - the home group and see that the computer saw the home group. Click to join.

Some people think that connecting via wire and Wi-Fi are two different things. Therefore, to destroy the myth how to connect two computers to each other via wifi, I decided to connect via Wi-Fi and do the same.

Let's go in order.

We provide access to the necessary files.

Next, enter the password that was given when opening the group above.

That's it, you joined the group.

Next, if you want to share files, do the following - Go to the control panel and the network and sharing control center.

Click to change additional sharing options.

And select all the items as mine:

Everything. Now check. Create a folder, for example, I created on the laptop desktop (which are connected via wi-fi).

Next, right-click on it and select the property. Access tab. First, Sharing, then advanced settings.

We write everything, or a specific user, then we can put what is allowed to him and click shared.

In the advanced setting, check the box and click ok. If you need advanced rights, then the advanced button.

Now check. In the computer I press start, I go to the network. And I see my laptop (I didn’t bother with the name of the computer).

We go in and see the folder that I created on the laptop.

2 way to connect two computers by wire

Without a router, you can connect only 2 computers ... Of course, if you add a network card to each computer, then more, but this is some kind of tin ... We will connect two computers on a cord.

In general, we connect the cord to a 2m computer, to a network card. Next, go to the network and sharing control center - changing adapter settings. On the LAN connection, select the property. We find the protocol version 4 and the same property. Our task is to leave the same subnet, and the computer address can be any. On one computer, I set the address 192.168.1.1, and on the other 192.168.1.2. The mask is standard 255.255.255.0.

Click ok, on 2 computers and go to the network check.

Also, if it does not work out, do the settings from the 1st method. I did right after them, therefore they are workers.

Check if the firewall or the firewall in the antivirus is blocking (if any).

And also, when you go on the network, a sign may appear at the top, whether to allow files on the shared network. Click yes.

Option 1: Direct Connection

With this connection, one of the computers acts as a gateway to connect to the Internet. This means that it must have at least two network ports. One for the global network and one for the local one. However, if the Internet is not required or it "comes" without using wires, for example, via a 3G modem, then you can do with one LAN port.

The connection diagram is simple: the cable is connected to the corresponding connectors on the motherboard or network card of both machines.

Please note that for our purposes we need a cable (patch cord), which is designed for direct connection of computers. This variety is called a "crossover." However, modern equipment is able to independently determine the pairs for receiving and transmitting data, so the usual patch cord will most likely also work fine. If you encounter problems, you will have to redo the cable or find the right one in the store, which can be very difficult.

From the advantages of this option, you can highlight the ease of connection and the minimum requirements for equipment. Actually, we only need a patch cord and a network card, which in most cases is already built into the motherboard. The second plus is a high data transfer rate, but this depends on the capabilities of the card.

The disadvantages can be called a big stretch - this is a reset when reinstalling the system, as well as the inability to access the Internet when the PC is turned off, which is the gateway.

Customization

After connecting the cable, you need to configure the network on both PCs. First you need to give each machine in our "LAN" a unique name. This is necessary so that the software can find computers.

    Click RMB on the icon "Computer" on the desktop and go to the system properties.

Follow the link here "Change Settings".

In the window that opens, click "Change".

Next, enter the name of the machine. Keep in mind that it must be prescribed in Latin characters. You can not touch the working group, but if you change its name, then this also needs to be done on the second PC. After entering, click OK. For the changes to take effect, you need to restart the machine.

Now you need to configure shared access to resources on the local network, since by default it is limited. These actions also need to be performed on all machines.

    Right click on the connection icon in the notification area and open “Network and Internet Settings”.

We proceed to configure the sharing settings.

For a private network (see the screenshot), enable detection, enable file and printer sharing, and allow Windows to manage connections.

For the guest network, we also enable discovery and sharing.

For all networks, disable shared access, configure encryption with 128-bit keys and disable password access.

Save the settings.

In Windows 7 and 8, this parameter block can be found like this:

    Right-click on the network icon to open the context menu and select the item leading to Network Management Center.

Next, we go on to configure additional parameters and perform the above actions.

Next, you need to configure the addresses for both computers.

    On the first PC (the one that connects to the Internet), after going to the settings (see above), click on the menu item “Configuring adapter settings”.

Here we choose "LAN connection", click on it with RMB and go to properties.

In the list of components we find the protocol IPv4 and, in turn, we pass to its properties.

Switch to manual entry in the field IP address enter the following numbers:

In field "Subnet mask" the necessary values ​​are automatically substituted. Nothing needs to be changed here. This completes the setup. Click OK.

On the second computer, in the protocol properties, you must specify the following IP address:

We leave the mask by default, but in the fields for the addresses of the gateway and DNS server, specify the IP of the first PC and click OK.

In the "seven" and "eight" should go to Network Management Center from the notification area, and then click on the link "Change adapter settings". Further manipulations are performed according to the same scenario.

The final procedure is to allow sharing of the Internet.

    We find among network connections (on the gateway computer) that through which we connect to the Internet. We click on it with the right mouse button and open the properties.

Tab "Access" we put all the daws that allow the use and management of the connection to all users of the “LAN” and click OK.

Now the second machine will be able to work not only on the local network, but also on the global one. If you want to exchange data between computers, you will need to perform one more setup, but we will talk about this separately.

Option 2: Connection via a router

For such a connection, we need, in fact, the router itself, a set of cables and, of course, the corresponding ports on the computers. The type of cables for connecting machines to a router can be called “direct”, as opposed to a crossover cable, that is, the wires in such a wire are connected “as is”, directly (see above). Such wires with already mounted connectors can be easily found in retail.

The router has several connection ports. One for Internet and several for connecting computers. It’s easy to distinguish them: LAN-connectors (for cars) are grouped by color and numbered, and the port for the incoming signal stands apart and has a corresponding name, usually written on the body. The connection diagram in this case is also quite simple - the cable from the provider or modem is connected to the connector "Internet" or, in some models, "Link" or ADSL, and computers in ports signed as "LAN" or Ethernet.

The advantages of this scheme are the ability to organize a wireless network and the automatic determination of system parameters.

Of the minuses, the need to purchase a router and its preliminary configuration can be noted. This is done using the instructions included in the package and usually does not cause difficulties.

To configure the necessary parameters in Windows with such a connection, no action is required - all installations are performed automatically. You just need to check the method of obtaining IP addresses. In the properties of the IPv4 protocol for LAN connections, you must put the switch in the appropriate position. How to get to the settings, read above.

Of course, you also need to remember to set the permissions for sharing and network discovery, as for cable connections.

Next, we will talk about how to provide work with shared resources - folders and files - in our "LAN".

Setting access to resources

Sharing means the ability to use any data by all users of the local network. In order to "share" the folder on the disk, you must do the following:

    Right-click on the folder and select the context menu item with the name "Grant access to", and in the submenu - "Individual People".

Next, select all the users in the drop-down list and click Add.

We set permissions to perform operations inside the folder. It is recommended to set the value "Reading" - this will allow network participants to view and copy files, but will not allow them to change.

Save the settings with the button "Share".

Access to "shared" directories is carried out from the transition area "Explorer" or from folder "Computer".

In Windows 7 and 8, the names of the menu items are slightly different, but the principle of operation is the same.

Conclusion

The organization of a local network between two computers is not a complicated procedure, but requires some attention from the user. Both methods described in this article have their own characteristics. The simplest, in terms of minimizing settings, is the option with a router. If such a device is not available, then it is quite possible to do with a cable connection.

Thank the author, share the article on social networks.

Home LAN options

When creating a home local network, most often, two options are used:

  1. connect two computers (PC with laptop, PC with PC, etc.) using a cable (it is often called a twisted pair cable),
  2. acquire special. "box" called a Wi-Fi router. Using a network cable, they connect PCs to the router, and laptops, phones, tablets and other devices get Internet access via Wi-Fi (the most popular option today).

Option number 1 - connecting 2 PCs using twisted pair

Pros: simplicity and cheapness (you need 2 things: a network card, and a network cable), providing a sufficiently high speed that not every router is able to give out less radio waves in the room.

Cons: extra wires create confusion, get in the way, after reinstalling the Windows OS - you need to configure the network again so that Internet access is on the second PC (2), the first PC (1) - must be turned on.

What is needed: for each PC to have a network card, network cable. If you plan to connect more than 2 PCs to a local network (or to have one PC connected to the Internet, and simultaneously be on the local network) - one of the PC should have 2-3 or more network cards.

In general, if both PCs have network cards, and you have a network cable (also called an Ethernet cable), then connecting them using it is not difficult. I think there is nothing special to consider here.

Note: pay attention that usually on network cards a green (yellow) LED starts to light up when you connect a cable to it.

Two laptops connected by cable

Another important point!

Network cables for sale are different: not only in color and length. The fact is that there are cables for connecting the computer to the computer, but there are those that are used to connect the PC to the router.

For our task we need cross network cable (or cable, crimped cross way - here who calls what).

In the cross-over cable - the yellow and green pairs are interchanged at the end connectors, in the standard (for connecting a PC to the router) - the colors of the contacts are the same.

Twisted pair // network cable

In general, if two PCs are turned on, they are working, you connected them with a cable (the LEDs on the network cards blinked), the network icon next to the clock stopped displaying a red X - it means the PC found the network and is waiting for its settings. This is what we will do in the second section of this article.

Option No. 2 - connecting 2-3 or more PCs using a router

Pros: most devices: phones, tablets, laptops, etc. will gain access to the Wi-Fi network, fewer wires "underfoot", after reinstalling Windows - the Internet will work.

Cons: the purchase of a router (after all, some models are far from cheap), the device’s “complicated” setup, the radio waves of the router can affect health., Lower ping and hangs (if the router cannot cope with the load).

What is needed: a router (usually comes with a network cable to connect one PC to it).

With the connection of the router, as a rule, there are no big problems either: the cable coming from the Internet provider is connected to the special. the router’s connector (it is often called “Internet”), and local PCs are connected to other connectors (“Lan ports”). Those. the router becomes an intermediary (An example diagram is shown in the screenshot below. By the way, the modem on the right may not be in this diagram, it all depends on your Internet connection) .

Internet connection scheme through a router

By the way, pay attention to the LEDs on the router case: when you connect the Internet cable from the provider, from the local PC - they should light up and blink. In general, setting up a Wi-Fi router is a separate big topic, and for each router, the instructions will be slightly different. Therefore, it is hardly possible to give universal recommendations in one single article.

By the way, when connected via a router, the local network is usually configured automatically (i.e., all computers connected via a network cable should already be on the local network, a couple of small strokes will remain (more about them below)). The main task after that is to set up a Wi-Fi connection and access to the Internet. But since this article is about a local network, I’m not focusing on this.

LAN settings (Windows 7, 8, 10)

In this section of the article I will give universal instructions, regardless of how your local network is organized: connected via a network cable, or using a router. Where the settings will relate to a particular option - there will be notes.

Note: all settings are relevant for Windows 7, 8, 8.1, 10.

Name of computer and workgroup

It is relevant for connecting through a router, and directly.

Allegory: each person has his own name, surname, middle name, date of birth, city, etc. - There are absolutely no two identical people. Also in the network - there should not be computers with the same name.

The first thing to do when setting up your local network is to check and configure workgroup name and computer name . Moreover, you need to do this on every computer in the local network!

To find out the computer name, open the Windows Control Panel at: Control Panel System and Security System (screen below). Next, make sure of the following:

  1. PC name and slave. the group should be in Latin
  2. each PC / laptop in the local network must have its own unique name (e.g. PC1, PC2, PC3),
  3. each pc / laptop should have same working group (e.g. WORKGROUP).

To change the name and workgroup - click the "Change settings" button.

Имя компьютера, рабочая группа

Далее нажмите кнопку "Изменить", введите новое имя компьютера и рабочую группу. Сохраните настройки и перезагрузите компьютер (см. скрин ниже с подсказками).

Изменение рабочей группы и имени ПК

In general, when you bring all the names in accordance with the requirements above, you can proceed to the next configuration step.

Enabling printer and folder sharing

It is relevant for connecting through a router, and directly.

This innovation appeared in Windows 7, supposedly provides greater security for the OS (purely in my opinion, only creates the need for additional configuration of the local network). The bottom line is that by default, Windows blocks and prevents access to open and share folders, a printer, etc., until the security policy is “softened”.

To remove this lock and enable sharing, you need to:

    First open the Windows Control Panel: Control Panel Network and Internet Network and Sharing Center . Next, in the left menu, open the link "Change advanced sharing settings."

Change add. sharing options

  • Then, in turn, go to three tabs: private, guest and all networks. In each of them you need to set certain parameters. Let's go through each.
  • In the tab private , you need to put the sliders in front of the items: enable network discovery, enable file and printer sharing, allow Windows to manage home group connections (as in the screenshot below).

    Next, open the tab guest room , in it you need: enable network discovery, enable file and printer sharing (example in the screenshot below).

    Next, open the tab all networks , there you need to: disable sharing, use 128-bit encryption, disable sharing with password protection. Next, save the settings and restart the PC.

    Configure IP addresses, DNS, masks, gateways

    For a network organized using a router

    In general, for PCs connected to the local network using a router, you usually do not need to configure anything (everything works by default). If something is wrong, just in case, I recommend going in and checking the connection properties.

    To do this, you must first open "network connections" . This is done simply:

    1. first open the window Run - combination of buttons Win + r ,
    2. then enter the command ncpa.cpl and press Enter (works in all versions of Windows 7, 8, 10).

    How to open network connections // ncpa.cpl

    Next open LAN connection properties . (for this, simply click on the connection with the right mouse button - in the pop-up menu select the required one, see the screen below)

    LAN Connection Properties

    Next open IP Version 4 Properties (TCP / IPv4) and check if it is worth getting the IP and DNS addresses automatically. If this is not the case, set it to automatic, save the settings.

    Setting IP, DNS, gateway

    To connect a PC to a PC via a network cable

    Pc 1

    By PC 1, I mean a computer that has two network cards: the provider’s Internet cable is connected to one of them, and the local network cable to PC 2 is connected to the second.

    Note: Although, the Internet cable from the provider does not have to be. If it is not, select PC 1 and PC 2 - at random.

    And so, open the properties of the network connection on the local network (how to do this - see a little higher in the article).

    Next, open IP Version 4 Properties (TCP / IPv4) and enter:

    1. IP Address: 192.168.0.1,
    2. subnet mask: 255.255.255.0 (see screen below),
    3. save the settings.

    Pc 2

    AT IP Version 4 Properties (TCP / IPv4) second PC, you need to set the following parameters:

    1. IP Address: 192.168.0.2,
    2. subnet mask: 255.255.255.0,
    3. main gateway: 192.168.0.1,
    4. preferred DNS server: 192.168.0.1 (see screen below),
    5. save the settings.

    Actually, the LAN setup itself is finished. Now you can start the most interesting thing - sharing and using shared resources of the local network. Actually, to what we were going.

    Sharing Internet access on a second PC

    Actual for PCs connected directly to a LAN cable.

    You need to configure PC 1 (i.e., the one to which we have connected the provider's Internet cable).

    First open network connections : click the combination Win + r we introduce ncpa.cpl , Further Enter .

    How to open network connections //ncpa.cpl

    Next, go to internet connection properties . (to do this, right-click on it)

    Internet connection properties

    Next, open the tab "Access" , and check the box next to "Allow other network users to use the Internet connection of this computer" . Save the settings.

    Allow other users to access the Internet

    If everything is done correctly, the Internet will be on both computers.

    Note: Naturally, the Internet should be on PC 2 - PC 1 must be turned on! This, by the way, is one of the inconveniences of such a local network, when connected via a router, the Internet will be regardless of which PC is on / off.

    Sharing folders / files for sharing

    1) Immediately get down to business: open the explorer, and right-click on the folder you want to share (that is, give access to it to all users on the local network). Next, in the menu, select: share / individuals .

    2) Next, choose "Everything" users, and press the add button.

    3) Set the resolution: read or read and write.

    • reading is allowed: users will only be able to copy your files to themselves (neither will they be able to delete or modify them!),
    • reading and writing are allowed: LAN users will have full control over files in folders: they can delete all files, change any of them, etc. In general, I would not recommend providing such access to important and large folders (for transferring files, it is better to have a separate folder to which you give full access).

    Read or write

    4) Next, check the user rights again and press the button "Share" (need administrator rights).

    5) After a few seconds, Windows will inform you that the folder has been opened for public access. So everything went well.

    6) To access the folder:

    1. open the conductor
    2. then open the "Network" tab (left, bottom of the window),
    3. open computer name on which the folder was shared. As we see in the screenshot below - it is shared, you can go into it and start copying (reading) any files.

    Check // the folder is shared // now everyone can copy files from it

    Sharing a printer (shared network printer)

    1) The first thing to do is open the control panel: control panel / equipment and sound / devices and printers.

    2) Next, right-click on the printer to which you want to give access and make a network. In the pop-up context menu - open properties .

    3) Then open the tab "Access" and check "Sharing this printer" . Save the settings (see screen below). Actually, the printer is now shared and it can be used by other PCs / laptops / tablets and other devices on the local network.

    How to share a printer

    4) To connect a network printer, open conductor select computer name on which the printer is shared. Next you should see it: click on it right click and select the option in the menu connecting .

    5) Then you can open any document, press Ctrl + P (Fay / Print), and try to print a page to a friend.

    Note: By default, in Windows, usually a different printer is specified (not the one you connected over the network). When printing, do not forget to change it.

    Regarding the local network printer - I recommend that you read my detailed article on this topic. It describes in more detail some points. The link is below.

    I’m completing the article on the sim. Good and fast setup for everyone.

    Pin
    Send
    Share
    Send
    Send