How to play on a local network - a detailed guide by experienced players. Correct connection of computers on the local network

Two players is the easiest case

The simplest multiplayer game is for two players. In this case, one of the computers will be the master - the master, and the other - the slave. The main machine controls movements, collisions and the entire game space in general. To synchronize the game worlds, events are transmitted to the second, he marks them on his (it is identical to the main card).

All random elements, for example, cartridges and first-aid kits, which are placed in different places of the playing field, must also be transferred to the slave device. This is just one time before starting the game. All can be transferred. The slave sends information about keystrokes to the master.

How to create a network game on the Internet

It is more difficult to transfer data than to local network... This should be taken into account if you decide to make a network game. The fact is that delays occur from time to time during data transfer, and additional measures must be taken to ensure that the game continues to function normally. Mobs usually move in a pattern, so the computer can send a command like "Defend Scenario B" or "Escape Scenario C". Thus, the amount of information transmitted to them will be reduced, and synchronization will be much easier - you need to periodically transmit signals that indicate that the object has crossed some cell of the playing field. This transmission is good to use when working with busy channels, as it is resistant to delays.

How to make a multiplayer game: fighting cheaters

Those who are going to create an online game should seriously think about methods of dealing with possible cheating. To protect computers from hacking, it is necessary to change the slave and master from time to time - this is not difficult to accomplish.

If there are more than two players, new problems may arise. A sufficiently powerful processor is required for a master computer to serve multiple slaves. However, this is not the main difficulty. A problem can be a situation when the connection between computers is suddenly disconnected. The solution may be to install a dedicated server. It is also possible to establish a connection not only between the host computer and others, but also between all the host computers. Thus, each computer will periodically become the master, and if the master is disconnected, nothing bad will happen. There is another option. You can refuse the "main" computer altogether. Each machine will control the movements of its mobs and its player, sending data to the rest. This scheme will help solve almost all problems.

If you want to play on two PCs without using the Internet, instantly transfer files from different devices without USB media, then you need to know how to create a local network between two computers. This technology of connecting two PCs has been used for a long time, even today it has not lost its relevance.

Local network example

A local network is a group of interconnected devices: PCs, televisions, printers, usually located no further than one room. Devices use shared memory, servers, thus complement each other. This connection allows you to create a play area for several PCs, easily and fairly quickly transfer any data, print documents if one common printer is installed, and much more. Combining devices today more often occurs using a router, but other connections can also be used, which you can read about below.

Making a connection

It is quite easy to create a connection, and also in different ways: via a router or cable. The device configuration for both methods is quite similar. The difference lies mainly in the connection method: cable or Wi-Fi.

Communication via Wi-Fi, which is used much more often today, can be much more convenient, but connecting two PCs with a cable will cost less if you have not yet installed a router for some reason.

Connection via cable

The oldest form of communication between two machines. All you need to do is connect an RJ45 network cable. The cable must be crossover, although regular straight cables are often suitable for modern computers. Nevertheless, when buying, it is better to check the type of cable with the seller. When the ends of the crossover cable are folded, the colors of the wire ends will differ - this is the main difference. The connection also requires network cards on both devices, but today they are already installed. It is only worth noting that if the network card is already busy with an Internet connection, then it will not work to use it.

Such a connection was just used before in order to play. But someone may be comfortable today, especially if you still have Windows XP, which has difficulty supporting wireless connections.

After connecting the cable itself, you need to know how to set up a local network between two computers:

  • Control panel, select the item regarding network connections.
  • We select there created by us, right-click on it, select "Properties"
  • Further, depending on "Windows": for Windows XP we select the Internet Protocol (TCP / IP), for Windows 7/8/10 - Internet Protocol version 4.

  • Enter the IP address manually: 192.168.xxx.xxx. The last six digits can be entered independently, as long as they are not repeated for different devices.

  • On Windows 7, you will also need to go to the Network Control Center, there, through the "Settings" item, select "Private" for our network.
  • Then in Control Center, enable file sharing, network discovery, and disable password protection.

After that, you must also set up sharing. This is done so that the PCs can exchange any files. The methods differ on different OS. On WindowsXP:

  1. Section Network connections, go to "Service", select "Folder Options".
  2. Tab "View", put a tick opposite "Use simple file sharing".
  3. Next, go to the "System Properties" window: RMB on "My Computer" - select the Computer name.
  4. Click on "Change", select "Member" - the working group. Coming up with a common group name for both PCs.
  5. My computer, right-click on the hard drives (for example, Windows (C :)), in the "Access" tab, click on the link, set the share permission.

That's it, access to the files of the selected disks is completely open. With Windows 7/8/10, we proceed as follows:

  • Control Panel, then Folder Options.
  • We put a tick “Use the sharing wizard”.
  • The following steps will be the same as for XP.

Connection via a router

This is the most convenient way, as it allows you to connect not only two, but more computers or other devices that support Wi-Fi. You can play on such a connection without long settings.

IP-addresses for such a connection will be set automatically. To use shared files, you only need to share the files, and then add two computers to one workgroup, as described above.

Now, to transfer files, you just need to enter using the address bar the computer name: \\\\ name \\. You can also do this through the Network Connections section. It is also worth securing your personal or especially important files so that no one can access them from a nearby computer. To do this, it is best to indicate disks that do not contain information important to you. For example, it is better not to make the disk containing the data of user accounts open to everyone, or, using the settings menu for files and folders, restrict access to them: RMB on the desired folder, then select the sharing settings there.

LAN play

So, we managed to connect two devices to the same network without the Internet, let them exchange files. How to start playing on a local network?

For this, as a rule, no additional settings need to be made. We just turn on the game and, if it is possible to play over a local connection, select the appropriate item, and then play on the one we have already created.

For different games the connection to the shared server may vary. Somewhere you will need to enter the IP or PC name. For Minecraft, Counter Strike, for example, you will need to create a server. But as a rule, everything is done quite simply.

Hamachi

This happens quite rarely, but sometimes a game does not allow you to play over the Internet, but it does over a local network. Do not despair, even if it turned out that your friend lives far away from you.

Hamachi program allows you to emulate a local connection and thus connect a PC to it via the Internet. To do this, you just need to download the program, register, and then create a new connection, come up with a name for it and, if necessary, a password. Then you can easily use this network to play.

As you can see, connecting computers to a local area network is a fairly easy process. It will not take you much time, and you can connect two PCs, and then play with friends, both far from them, and being in the same room with them.

Ways to create a connection are suitable for all Windows, from XP to "Ten".

Navigating the article:

1. Introduction. Basic concepts of the organization of multiplayer games.

As we all know, for a multiplayer game, we must be connected to a local network or the Internet. Due to which the game client receives data from the server or from other players. The data can contain information of various kinds: player position, change of inventory, chat text, player actions and much more. Typically, data is sent in "bursts", i.e. certain parameters are taken (player's position, angle of rotation, selected weapon, etc.) and placed in the array in a certain sequence, after which the entire array is sent. This allows you to reduce ping between players, because sending small data packets frequently is much slower than sending bulk data infrequently. To organize the exchange of data between clients, two schemes are mainly used: client-server, client-client.

! Client-server - in this scheme, a game server is created, to which clients connect. The server is the main one, clients only send data to it and receive them, there is no connection between clients. When using this scheme, the server has the opportunity to correct the data before sending data to all players. This scheme is the most common because relieves the load from the client, transferring all the work of sending data to the server.

Example: 10 players are connected to the server. Player 1 sent information to the server, after which the server processed it and sent this information to the other 9 players.

! Client-client - one of the clients starts the game, after which the rest of the players connect to it. There is an exchange of data between clients and they learn information about each other. In this scheme, each client sends data to the others himself. This scheme is rarely used because gives an unreasonable load on the game client.

Example: player 1 starts the game, the others connect to it. With the help of player 1, all clients learn about each other. After that, each client sends the rest of the useful game information, while receiving data from the rest.

Which of the presented schemes to use is your choice, but it is worth remembering that when using the client-server scheme, the load on the game client decreases and allows the server to correct the data (if necessary) before sending it to the rest of the players.

There are several types of protocols for data transmission (TCP, UDP, IPX, etc.), each of which has its own characteristics. For example, the UDP protocol does not guarantee the delivery of data and their order, so you have to check whether the data came or not and adjust their order. In turn, the TCP protocol guarantees the delivery of data and their order, but has a lower speed than UDP.

! Game maker supports the following connection types: IPX, TCP / IP, Modem and Serial.

This article will consider the TCP / IP set of network protocols, since the rest of the types that Game Maker supports are almost never used or are not used at all. It should be noted right away that it was not created for the organization of average MMO games, but for a cooperative of 2-6 players or a simple MMO game, it is quite suitable.

When you have learned how to play MineCraft well, have mastered all the basics of the game, learned its inner world, you can go to online game, in which you can play both with people from other cities on Internet servers, and with friends over a local network. In this article I will tell you how to play Minecraft on a local network and on the Internet.

How to play minecraft on the Internet?

You can play MineCraft on the Internet on servers specially created for this, you can find them on various online monitors and ratings. To start the game, we need the game itself (preferably the latest version), a powerful computer (otherwise the game will slow down), high-speed Internet access (a 1MB / s channel will be enough) and the address of the game server. So, let's begin. Start the game, enter it with your username, and then select the "Network game" item (the second button). A connection window will appear in front of you, in the first line we enter the address of the server on which we will play, and then click on the "Connect" button, in the English version of the Minecraft game with skins http://minecraft-mods.pro/skins/ "Connect" and we get to the server. Once on the server, you will find that you cannot do a single action, it happened because you are not registered on this playground, this is done quite simply, in just a few steps. To register on the server, press the English letter "T", we will open a chat, enter the following command "/ register pass" in it, where we change the word "pass" to our own password, that is, it looked like this to me - "/ register trash784 ". After a couple of seconds, the server will issue a confirmation of your registration in the chat and allow you to enter the game, for this enter the command "/ login pass", where the word "pass" is changed to your password. It will look something like "/ login crosh". After registering and logging into the server, you can start playing, performing various actions and doing any business, from the construction of buildings and farming, ending with their destruction and traveling around the game world.

How to play minecraft on a local network?

You can play MineCraft over a local network with friends, for example, this is quite important for playing for fun or just when there are problems with the Internet (for example, technical work). To play on a local network, we need several computers (two or more), an Internet cable of decent length, if there are many computers, then also a router or a Wi-Fi access point. We connect all computers with a wire, and then we go to the network settings. AT windows 7 do it like this: Start -\u003e Network and Sharing Center -\u003e Change adapter settings. We find the name of our own network, open the properties, the "Network" tab, first select the TCP / IPv6 setting, a small window opens, uncheck the box, save, open the TCP / IPv4 setting, go as follows: Properties -\u003e Use the following IP address. Enter the following parameters:

  1. IP address: 192.168.0.1
  2. Subnet mask: 255.255.255.0
  3. Default gateway: 192.168.0.2
  1. Preferred DNS Server: 192.168.0.2

Then we press the save button, "ok" and close the settings. See the server settings below, after configuring the local network for windows xp. Settings for Windows XP: First, open the Control Panel and go along the following path: Control Panel -\u003e Network Connections -\u003e Local Area Connections. Open the properties, the "General" tab, open TCP / IP, a window with properties will open, select the "Use the following IP address" item, enter the parameters:

  1. IP address: 192.168.0.2
  2. Subnet mask: 255.255.255.0
  3. Default gateway: 192.168.0.1

Open the "Use the following DNS server" tab and enter the parameters:

  1. Preferred DNS Server: 192.168.0.1

We save the changes and close the settings. Server creation and configuration. When we have configured the local network, we can proceed to creating and installing the MineCraft server itself, which is not so difficult to create, this is done as follows:

  1. Download any game server suitable for your version of the game, save it to a folder.
  2. Open the file "server.properties", find the line "server-ip \u003d ..." and delete everything that is written after the sign "\u003d", so that you have a line with an empty value "server-ip \u003d".
  3. We find in the same file the line "online-mode \u003d false", delete "False", insert "true" in its place.
  4. The server is ready, now you can start it. To start the game, open MineCraft and in the line with the server address enter: 192.168.0.1:25565 (for Windows 7) or 192.168.0.2:25565 (for Windows XP).

The second method, suitable for all types of operating systems, in the line "server-ip \u003d" enter the value "localhost", save the changes, open the game and write localhost in the line with the IP address and then click on the connection. But, this method does not work on all computers and not on all (because of many subtleties and features), so it is easier to use the first option. That's all, with such simple and quick steps you can set up Minecraft for playing on the Internet and with your favorite friends on the local network.

The ways

There are two methods by which you could play with other people.

  • The local network.
  • The Internet.

In essence, they are very similar and do not differ in many respects, but each has its own nuances that you need to remember. For example, you can create your own map long and hard, and then make it available for local play. Do not forget to make a copy, otherwise it will be very offensive when other players destroy what you have painstakingly created.

Anyway, you will need some things, without which you will not be able to play with other people. This is the Internet, a Minecraft client, "direct" hands. You also need to remember that you will have to make changes to the settings of the computer, so be careful, all responsibility for bringing the PC to a non-working state will fall on your shoulders. Now let's figure out how to play Minecraft with friends.

The local network

Let's imagine that there are a couple of computers with no Internet access, and they are located in the same room. Moreover, a local network exists and is configured between them. In this case, you can play Minecraft online. 2 friends have to install the same client version on both computers. Now the sequence of actions is quite simple:

  1. One of the players must create a single player game with the desired settings.
  2. After that, he needs to press ESC and open the game for multiplayer.
  3. A message will appear in the chat about starting the server with a specific IP-address. This is what you need to remember.
  4. The client also starts on the second computer. Only the other player enters the multiplayer mode already. If the game does not automatically find the server, then you need to add it by entering the IP that you remembered a little earlier in the search bar.

Thus, the question of how to play together in "Minecraft" on a local network is solved.

Imaginary network

If your computers are separated by vast distances and connected exclusively by the Internet, you can also play on a pair. There are different ways how to play together in "Minecraft" over the Internet, so first we will consider an option that does not require advanced computer settings.

To do this, you need to download and install a utility such as Hamachi. Both friends must install it and register, after which one of them creates a server room in the program, to which his friend must connect. This method creates a virtual private network - an analogue of a home local network, only organized via the Internet. The shrewd user, probably, has already realized that further actions are similar to the previous paragraph. There is only one "but". If your computers cannot see each other, then add Hamachi to the exceptions of the firewall and antivirus.

the Internet

If you do not want to be wise again? Theoretically, if you download the same version of the client from one site and perform all the same manipulations as in the first case, you will be able to connect to a friend. On the other hand, you can use Minecraft. Download it from any site specializing in this game, install and run. After that, you just have to send your address to people with whom you would like to play together. There is nothing difficult about this. So good luck with your cube world exploration and multiplayer attempts. And most importantly, if something does not work out, do not lose heart and try again and again, then you will certainly succeed.

Fool