How to connect two computers to the internet via a router via Wi-Fi: a step-by-step algorithm

It is no longer possible to imagine a modern home or small office without a local network that unites all devices into a single system. Connecting two computers to the Internet via a router via Wi-Fi — this is a basic task most users face immediately after purchasing a new router. Properly setting up such a network allows not only for internet access but also file sharing, printer sharing, and even lag-free online gaming.

The setup process doesn't require extensive networking knowledge, but ignoring important details can lead to unstable operation or complete loss of communication between devices. In this article, we'll cover the physical connection, router settings, and operating system configuration to ensure stable operation of both computers. You'll learn how to avoid IP address conflicts and properly configure wireless security.

Network setup begins with understanding how data will be transmitted between devices. The router acts as a dispatcher, distributing traffic and assigning unique addresses to each connected client. If a security configuration error occurs at this early stage, your entire local network will become vulnerable to outside interference, so we'll pay special attention to encryption protocols.

Equipment preparation and compatibility testing

Before you begin software configuration, you need to make sure all hardware components are ready for use. First, check for availability. Wi-Fi adapters On both computers. In modern laptops, the wireless module is usually built into the motherboard and requires no additional steps.

However, if you plan to connect a desktop PC, the lack of a built-in module may complicate matters. In this case, you'll need to purchase an external USB Wi-Fi adapter or install an internal PCIe card. Make sure the drivers for these devices are installed and working correctly in the operating system.

  • 📡 Check the functionality of the antennas on the router and make sure they are securely attached.
  • 💻 Make sure both computers are turned on and the operating system is fully loaded.
  • 🔌 If you are using a wired connection for initial setup, check the integrity of the Ethernet cables.

It's also important to consider the frequency range your equipment supports. Most modern routers operate in two bands: 2.4 GHz And 5 GHzThe first one provides greater coverage but lower speed, the second one provides high speed but shorter range.

⚠️ Note: Older 802.11b/g Wi-Fi adapters may not detect 5 GHz networks. If one of your computers doesn't detect your network, check its specifications and switch the router to compatibility mode or use the 2.4 GHz band.

The physical location of the devices also plays a role. For the initial setup, it's recommended to be in close proximity to the router to avoid interference and weak signal strength. After successful configuration, you can move the computers to the appropriate rooms.

Initial router setup via the web interface

The router's web interface is the primary network management tool. To access it, you must connect at least one computer to the router, preferably via a cable to avoid connection interruptions during setup. Open any browser and enter the device's IP address in the address bar, which is often 1000 by default. 192.168.0.1 or 192.168.1.1.

The system will request authorization. Default logins and passwords are usually located on a sticker on the bottom of the device, but for security reasons, you should change them immediately after logging in for the first time. In the settings menu, find the section responsible for wireless networking, often called Wireless or Wi-Fi Settings.

Here you need to enter the network name (SSID) and select a security method. The best choice at the moment is the protocol WPA2-PSK or its newer version WPA3Using outdated WEP encryption makes your network vulnerable to hacking in minutes, even by an inexperienced attacker.

📊 Which security protocol did you choose?
WPA2-PSK
WPA3
WEP
Without password

After saving the settings, the router will reboot. Now you need to connect both computers to the created network by selecting it from the list of available connections and entering the password you created. Make sure both devices receive IP addresses automatically.

Setting IP addresses and subnet masks

To ensure proper data exchange, each computer on the network must have a unique IP address. By default, the router acts as a DHCP server, automatically assigning addresses to connected devices. However, for stable operation between two computers, especially if you plan to share resources, it's best to reserve addresses or assign them statically.

To check your current settings, open a command prompt and enter the command ipconfigYou are interested in the line IPv4 addressIf the addresses start with 169.254.x.x, this means that the connection to the router is not established and DHCP is not working.

To configure it manually, go to the Network Connections control panel, select your Wi-Fi adapter and open the protocol properties. Internet Protocol version 4 (TCP/IPv4)Here you can specify static addresses, for example, 192.168.1.10 for the first computer and 192.168.1.11 for the second one, specifying the same subnet mask 255.255.255.0.

Parameter Computer 1 Computer 2 Gateway (Router)
IP address 192.168.1.10 192.168.1.11 192.168.1.1
Subnet mask 255.255.255.0 255.255.255.0 255.255.255.0
DNS server 8.8.8.8 8.8.8.8 192.168.1.1
Connection type Wi-Fi Wi-Fi Cable/DSL

Using static addresses simplifies access to shared folders, as the computer's address won't change after each router reboot. If you prefer automatic distribution, ensure the DHCP address pool in your router settings is large enough.

⚠️ Note: Router interfaces from different manufacturers (Asus, TP-Link, Keenetic) may differ in appearance, but the logic for setting IP addresses and DHCP remains the same for all models. If you don't find the option you need, please refer to the documentation for your specific model.

Organizing file and printer sharing

After successfully connecting to the internet, you often need to share files between computers without using flash drives or cloud storage. Windows operating systems offer the "Sharing" feature for this purpose. It can be enabled through the Network and Sharing Center.

Network discovery and file and printer sharing must be enabled. It's also recommended to disable password protection if both computers are on a trusted home network, although this may be unsafe for an office environment. Create a folder, right-click it, select Properties, and then go to the "Sharing" tab.

☑️ Setting up sharing

Completed: 0 / 4

To access a folder on another computer, open File Explorer and enter the IP address of the target computer in the address bar, for example \\192.168.1.11If everything is configured correctly, you will see a list of shared resources. A network printer is configured similarly: it must be connected to one of the PCs and shared on the network.

It's important to remember about network profiles. Windows automatically assigns the "Public Network" profile the first time you connect, which blocks your device's visibility. You need to manually switch the profile to "Private Network" in the Wi-Fi connection settings.

Diagnosing and troubleshooting communication problems

Even with proper configuration, situations may arise where computers cannot communicate with each other or the internet is unstable. The first diagnostic tool is the utility pingOpen a command prompt on the first computer and type ping 192.168.1.11 (address of the second computer).

If you receive responses, the physical connection and basic network settings are correct. If packet loss or timeouts occur, the issue may be with the Windows firewall, which is blocking ICMP requests. Try temporarily disabling the firewall to test this hypothesis.

⚠️ Warning: Completely disabling the firewall leaves your computer vulnerable. After troubleshooting, be sure to re-enable it and configure exception rules for trusted networks.

A common problem is a stuck DNS cache or errors in the TCP/IP stack. In such cases, resetting the network settings with the command netsh winsock reset, executed as administrator. A system reboot is required afterward.

What to do if the router does not assign IP addresses?

If the router's DHCP server is full or frozen, devices won't receive addresses. Try rebooting the router. If the problem persists, reduce the lease time in the router settings or expand the address pool. Also, check whether too many devices are connected to the network, exceeding the router model's limit.

Optimizing Wi-Fi network speed and security

Once two computers are successfully connected and exchanging data, it's time to think about optimization.