3 Ways to Connect Two Computers to a Local Area Network via Wi-Fi Without a Router

Creating a local network between two computers via Wi-Fi — a task that arises when you need to exchange files, share a printer, or run online games without an internet connection. Many people mistakenly believe that a router is essential for this, but modern versions Windows 10/11 allow you to organize a direct connection (ad-hoc) or use built-in functions like Mobile hotspotIn this article, we'll cover all current methods—from manual configuration to automated solutions—and explain how to diagnose problems when computers can't see each other.

It is important to understand that a local Wi-Fi network between two devices has limitations: the data transfer speed will be lower than via cable (Ethernet), and connection stability depends on interference and distance. However, for one-time tasks—transferring large files, setting up a remote desktop, or testing network applications—this approach is quite sufficient. If you need a constant connection, it's better to consider an option with router or Powerline adapters.

1. Methods for organizing a local Wi-Fi network: which one to choose?

There are three main methods of connecting two computers Wi-Fi without a router. Each of them is suitable for different scenarios:

  • 🔹 Ad-hoc network (Point-to-Point) is the classic method that works on all versions of Windows. It requires manual configuration of IP addresses and the network name. This is suitable for older PCs or if other methods fail.
  • 📶 Mobile hotspot — a built-in Windows 10/11 feature that allows one computer to share Wi-Fi and another to connect to it. This is the easiest option for beginners.
  • 🔧 Network bridge — used if one of the computers is already connected to the internet via Ethernet or another Wi-Fi connection and needs to share that connection. This method is more complex, but flexible.

The choice of method depends on your goals:

Way Difficulty of setup Need internet? Max. speed Suitable for
Ad-hoc network Average No Up to 54 Mbps (802.11g) Old PCs, LAN gaming
Mobile hotspot Low No (but you can share) Up to 300 Mbps (802.11n) Fast file transfer
Network bridge High Yes (optional) Depends on the underlying connection Internet distribution + local network

If you just need to transfer files or play an online game, it is optimal Mobile hotspotSuitable for older systems or specific tasks (such as hardware setup) ad-hoc. Network bridge This is relevant if one of the PCs already has Internet access and you want to share it.

📊 Which method do you find most convenient?
Ad-hoc network
Mobile hotspot
Network bridge
I don't know, I'll choose after reading.

2. Preparing computers before setting up the network

Before creating a local network, make sure both computers meet the minimum requirements:

  • 🖥️ Hardware requirements:
    • Both PCs must have Wi-Fi adapters (built-in or external). You can check their availability in Device Manager (Win + X → Device Manager → Network Adapters).
    • If there is no adapter, you will need USB Wi-Fi module (For example, TP-Link TL-WN725N or ASUS USB-AC56).
  • 🔧 Software requirements:
    • Operating system: Windows 7/10/11 (For ad-hoc will even do XP, but with limitations).
    • Accounts with administrator rights on both PCs.
    • Disabled firewalls or antiviruses (temporarily, for testing).

Also check if your adapters support the mode ad-hocTo do this:

  1. Open Command line (Win + R → cmd → Enter).
  2. Enter the command:
    netsh wlan show drivers
  3. Find the line Hosted network support. If it is indicated there Yes, then the adapter supports Wi-Fi distribution.

☑️ Preparing to set up the network

Completed: 0 / 4
⚠️ Attention: If one of the computers is using Windows 10/11 Home, some Group Policy settings may not be available. In this case, use Mobile hotspot or customize ad-hoc manually.

3. Method 1: Creating an ad-hoc network (point-to-point)

This method is suitable for Windows 7/10/11 and allows you to create a direct network between two devices without a router. The main drawback is the limited speed (up to 54 Mbps on standard 802.11g), but it works even on old PCs.

Instructions for main computer (which will distribute the network):

  1. Open Command line as administrator (Win + X → Terminal (Administrator)).
  2. Enter the command to create the network (replace MyWiFi to the desired name and 12345678 for password):
    netsh wlan set hostednetwork mode=allow ssid=MyWiFi key=12345678 keyUsage=persistent
  3. Start the network:
    netsh wlan start hostednetwork
  4. Allow public access (if internet is needed):
    • Go to Control Panel → Network and Internet → Network and Sharing Center → Change adapter settings.
    • Find an internet connection (eg. Ethernet), right-click → Properties → Access.
    • Check the box Allow other network users to share your Internet connection and select the created network (Local Area Connection* X).

For second computer:

  1. In the list of Wi-Fi networks, find the created network (MyWiFi).
  2. Connect by entering the password (12345678 (in the example).
  3. Assign IP addresses manually (if automatic acquisition did not work):
    • On the main PC: IP 192.168.1.1, mask 255.255.255.0.
    • On the second PC: IP 192.168.1.2, mask 255.255.255.0, gateway 192.168.1.1.
⚠️ Attention: After rebooting the main PC, the network hostednetwork will shut down. To start it again, run the command netsh wlan start hostednetwork or create .bat-file with this command and place it in startup.

4. Method 2: Using Mobile Hotspot (Windows 10/11)

The easiest method that doesn't require the command line. Suitable for Windows 10 (version 1607 and later) And Windows 11. The connection speed is limited only by the capabilities of the Wi-Fi adapter (up to 300 Mbps on 802.11n).

Instructions:

  1. On the computer that will be distributing Wi-Fi, open Settings → Network & Internet → Mobile Hotspot.
  2. In the field Sharing an Internet connection select a source (eg Ethernet or Wi-Fi, if the PC is connected to another network).
  3. Click Change and ask:
    • Network Name (SSID): For example, PC-Hotspot.
    • Password: at least 8 characters (e.g. SecurePass123).
  • Turn on the switch Mobile hotspot.
  • On the second computer, connect to the created network (PC-Hotspot) as to regular Wi-Fi.
  • If Mobile Hotspot fails to turn on with the error "Failed to set up Mobile Hotspot", check if your Wi-Fi adapter supports the mode AP (Access Point)A list of supported adapters can be found on the Microsoft website or the device manufacturer's website.

    Advantages of the method:

    • 🔹 No manual IP configuration required.
    • 🔹 Automatically assigns addresses via DHCP.
    • 🔹 Easy to turn on/off with one button.
    How do I share the Internet via a mobile hotspot if my primary connection is via Wi-Fi?

    If your PC is connected to the Internet via Wi-Fi and you want to share it via a hotspot, follow these steps:

    1. Open Command Prompt (Administrator).

    2. Enter the command: netsh wlan set hostednetwork mode=allow.

    3. Start the network: netsh wlan start hostednetwork.

    4. In Control Panel → Network Connections Find your Wi-Fi connection, right-click → Properties → Access and allow sharing for Local Area Connection* X.

    5. Return to Mobile hotspot and turn it on.

    5. Method 3: Network bridge (for Internet sharing)

    This method is suitable if one of the computers is connected to the Internet (for example, via Ethernet or 3G/4G modem), and you want to simultaneously create a local network and provide access to the World Wide Web. The setup is more complex, but the flexibility is greater.

    Step-by-step instructions:

    1. On a computer with internet access, open Control Panel → Network and Internet → Network and Sharing Center → Change adapter settings.
    2. Select two connections:
      • The one through which the Internet goes (for example, Ethernet).
      • The one through which Wi-Fi will be distributed (for example, Wireless network).
  • Right click → Setting up the bridge.
  • Wait a few seconds while Windows creates the bridge.
  • Now on the second computer, connect to the Wi-Fi network of the first PC (if it is already shared) or set up ad-hoc as in Method 1.
  • Limitations of the method:

    • 🔸 Not all Wi-Fi adapters support bridge mode.
    • 🔸 IP address conflicts are possible if the same range is used in the main network (e.g. 192.168.1.X).
    • 🔸 Internet speed will be lower due to double routing.
    ⚠️ Attention: If after creating a bridge the Internet disappears on the main computer, remove the bridge and check the settings DNSSometimes manually installing DNS from Google helps (8.8.8.8 And 8.8.4.4) in the connection properties.

    6. Setting up shared access to files and folders

    Once the connection between the computers is established, you need to set up sharing so they can see each other's files and folders. To do this:

    On the computer whose files you want to share:

    1. Right-click on the folder → Properties → Access → Share.
    2. Select a user All and press Add.
    3. Set the resolution level (Reading or Reading and writing).
    4. Click General access, then go to the tab Security and add a user All with the same rights.

    On the second computer:

    1. Open Conductor and enter in the address bar IP address of the first PC (For example, \\192.168.1.1).
    2. If you are prompted for login/password, enter the account details of the first PC (or create identical accounts on both devices).

    If computers cannot see each other:

    • 🔹 Check that both PCs are in the same working group (by default WORKGROUP). You can change it in System Properties → Computer Name → Change.
    • 🔹 Turn on Network discovery And File and Printer Sharing V Network and Sharing Center → Advanced Sharing Options.
    • 🔹 Disable your firewall or add an exception for File and Printer.

    7. Troubleshooting and troubleshooting

    If your local network is not working, follow this checklist:

    Problem Possible cause Solution
    Computers can't see each other. Different subnets or incorrect IPs Check the IP addresses (must be in the same range, eg. 192.168.1.X)
    No access to shared folder Invalid access rights or disabled SMB Turn on SMB 1.0 V Control Panel → Programs → Turn Windows features on or off
    Mobile hotspot won't turn on The adapter driver does not support AP Please update your driver or use ad-hoc
    Low transmission speed Interference or outdated Wi-Fi standard Switch to the channel 5 GHz (if adapters support it) or use a cable

    To check the connection, use the commands:

    • 🔹 ping 192.168.1.2 (replace with the IP of the second PC) - availability check.
    • 🔹 ipconfig /all — view current network settings.
    • 🔹 net view — displaying computers on the local network.

    If ping It works, but the folders are unavailable. The problem is in the sharing settings. If ping If it doesn't work, check your physical connection or IP settings.

    8. Alternative ways to connect two computers

    If your Wi-Fi connection is unstable or not working, consider alternatives:

    • 🔌 Direct cable connection (Ethernet):
      • Speed ​​up to 1 Gbps (10–20 times faster than Wi-Fi).
      • Needed crossover cable (or regular patch-cord for modern network cards with Auto-MDI/MDIX).
      • The IP setting is similar ad-hoc (For example, 192.168.1.1 And 192.168.1.2).
    • 📡 Bluetooth:
      • Speed ​​up to 3 Mbps (only for small files).
      • Suitable for laptops with built-in Bluetooth 4.0+.
      • Use the function Send file in the context menu.
    • 💾 Local area network via USB:
      • Required USB cable with support USB Networking (for example, for Samsung or Sony smartphones).
      • Speed ​​up to 480 Mbps (theoretically), but in practice – 30–50 Mbps.

    For maximum speed and stability we recommend cable connectionIf it's impossible to install a cable and Wi-Fi is unstable, try:

    • 🔹 Use 5 GHz instead of 2.4 GHz (less interference).
    • 🔹 Bring the computers closer to each other (or use Wi-Fi repeater).
    • 🔹 Update network adapter drivers.

    Frequently Asked Questions

    Is it possible to create a local network between a Windows PC and a Mac?

    Yes, but with some nuances. Mac need to:

    1. Open System Preferences → Sharing.
    2. Turn on File sharing and add a folder.
    3. IN Parameters Allow access for a guest account or a specific user.

    On Windows connect to the shared folder Mac through \\Mac_IP_Address\folder_name (For example, \\192.168.1.3\Public).

    Why is the file transfer speed over Wi-Fi so slow?

    The reasons may be as follows:

    • 🔸 An outdated standard is used 802.11g (max 54 Mbps). Solution: Switch to 802.11n or 802.11ac in the adapter settings.
    • 🔸 The signal is weakened by interference. Solution: change the Wi-Fi channel to a less crowded one (use utilities like Wi-Fi Analyzer).
    • 🔸 Files are fragmented. Solution: Archive them before transferring (for example, in .zip or .rar).

    To test the speed, use the utility iPerf or copy files via Total Commander - It shows the current transfer speed.

    How to make the local network work after a reboot?

    For ad-hoc networks:

    1. Create a file start_hotspot.bat with the following contents:
      @echo off
      

      netsh wlan start hostednetwork

      pause

    2. Place it in the folder Autoload (shell:startup in the address bar Conductor).

    For Mobile hotspot:

    • Enable the option Allow other devices to use my internet connection in the hotspot settings.
    • Windows 10/11 saves hotspot settings after reboot, but the hotspot itself must be enabled manually.
    Is it possible to play over a local network via Wi-Fi?

    Yes, but with some reservations:

    • 🎮 For most games (CS:GO, Minecraft, GTA V) it is enough that the computers are on the same network (it doesn’t matter whether via a router or a direct connection).
    • 🔹 Launch the game on both PCs, then select the mode LAN or Local area network.
    • ⚠️ For games with high ping requirements (e.g. Valorant or Fortnite) Wi-Fi connections can experience lag. In such cases, it's best to use a cable.

    If the game does not detect the second computer:

    • Check that your firewall is not blocking the game (add it to the exceptions).
    • Make sure the computers' IP addresses are static and on the same subnet.
    How to protect a local network from unauthorized connections?

    If you are distributing Wi-Fi via Mobile hotspot or ad-hoc, use the following safety measures:

    • 🔐 Set a complex password (at least 12 characters, with numbers and special characters).
    • 🔄 Change your password regularly (for example, once a week).
    • 📛 Hide the network name (SSID) in the adapter settings (but this will complicate the connection of legitimate devices).
    • 🛡️ Turn it off WPS (if supported by your adapter).
    • 🔗 Use MAC filtering (allow connections only for specific devices).

    For ad-hoc You can also limit the number of connected devices in the network using the command:

    netsh wlan set hostednetwork maxclients=1

    (Where 1 — maximum number of clients).