Connect Two Computers Using Wi-Fi on Windows 10
In this article
Yes, you can connect two Windows 10 computers over Wi-Fi without a router or internet. This creates a direct wireless link, letting you share files, folders, or even play LAN games. The easiest way is to use Windows' built-in Mobile Hotspot feature (which works as a virtual Wi-Fi hotspot) or the older Ad Hoc network method. Below, I'll walk you through both methods, plus how to share files once connected.
What You'll Need
- Two Windows 10 computers with working Wi-Fi adapters.
- Both computers must be within Wi-Fi range of each other (typically up to 30 feet indoors).
- Administrator access on both computers (to change network settings).
- Optional: a USB drive or external storage if you prefer to transfer files that way.
Step-by-Step: Method 1 – Using Mobile Hotspot
Note: Menu labels can vary slightly by Windows 10 version. The steps below work for most recent builds.
- On the first computer (the host): Open Settings (press Windows + I).
- Go to Network & Internet > Mobile hotspot.
- Under “Share my internet connection from,” select your main internet connection (e.g., Wi-Fi or Ethernet). If you don't need internet on the second computer, you can still share from “Wi-Fi” – it will just create a local network.
- Turn on the toggle for Share my internet connection with other devices.
- Note the Network name and Network password displayed. You can edit them by clicking Edit.
- On the second computer, click the Wi-Fi icon in the system tray, find the network name you just set, and connect using the password.
- Once connected, both computers are on the same local network. To share files, see the “Sharing Files” section below.
Step-by-Step: Method 2 – Ad Hoc Network (Command Prompt)
This method creates a temporary peer-to-peer network. It's useful if Mobile Hotspot isn't available or you prefer a more direct connection.
- On the first computer (host): Open Command Prompt as Administrator. Press Windows + X and select Command Prompt (Admin) or Windows PowerShell (Admin).
- Type the following command and press Enter:
netsh wlan set hostednetwork mode=allow ssid=YourNetworkName key=YourPassword
Replace YourNetworkName with a name (e.g., DirectPC) and YourPassword with a password of at least 8 characters (e.g., Passw0rd!). - Start the network by typing:
netsh wlan start hostednetwork
Press Enter. You should see “The hosted network started.” - On the second computer, click the Wi-Fi icon and connect to the network name you set, entering the password when prompted.
- If you want to share the host's internet connection, go to Control Panel > Network and Sharing Center > Change adapter settings. Right-click your active internet connection (e.g., Wi-Fi or Ethernet), select Properties, go to the Sharing tab, and check “Allow other network users to connect through this computer's Internet connection.” Then select the virtual adapter (usually named “Local Area Connection* 12” or similar).
Sharing Files Between the Two Computers
- Once connected, ensure both computers are on the same network (they will be if they connected to the same hotspot/adhoc).
- On the host computer, right-click the folder you want to share, select Give access to > Specific people.
- Choose Everyone from the dropdown, click Add, then set permission level to Read/Write if needed. Click Share.
- On the second computer, open File Explorer, click Network in the left sidebar. You should see the host computer's name. Double-click it, then access the shared folder.
- If the second computer doesn't see the host, try typing the host's IP address in the File Explorer address bar (e.g.,
\\192.168.137.1– the default IP for the Mobile Hotspot host). You can find the host's IP by runningipconfigin Command Prompt on the host.
Common Mistakes
- Not enabling network discovery: Windows may block file sharing if network discovery is off. Go to Control Panel > Network and Sharing Center > Advanced sharing settings and turn on network discovery and file sharing for the current profile.
- Using a password that's too short: The hosted network requires at least 8 characters. If you get an error, use a longer password.
- Forgetting to start the hosted network: The command
netsh wlan start hostednetworkmust be run every time you want to use it. It does not start automatically. - Connecting to the wrong network: Make sure you're connecting to the network you created, not your regular Wi-Fi.
- Firewall blocking: Windows Firewall may block file sharing. Temporarily disable it (or add an exception) to test, but re-enable it after.
Tips
- Use the Mobile Hotspot method if you want a simpler, more stable connection. It's built into Windows 10 and doesn't require command-line knowledge.
- For faster file transfers, consider using a USB cable or USB drive if you have large files. Wi-Fi transfer speeds are limited by the wireless standard (typically 100 Mbps or less in practice).
- If you plan to use this frequently, create a shortcut for the hosted network start command: right-click on the desktop, select New > Shortcut, and type
netsh wlan start hostednetwork(or the full command). Run it as administrator each time. - Keep both computers close to each other to maintain a strong signal.
Troubleshooting
If the hosted network won't start:
- Check that your Wi-Fi adapter supports hosted network. Run
netsh wlan show driversin Command Prompt and look for “Hosted network support: Yes.” If it says “No,” your adapter doesn't support this method – use Mobile Hotspot instead. - Make sure your Wi-Fi is turned on and not in airplane mode.
- Restart your computer and try again.
If the second computer can't connect to the hotspot:
- Verify the password is correct. Try re-entering it.
- On the host, turn off the Mobile Hotspot and turn it back on.
- On the second computer, forget the network and reconnect.
If you can connect but can't see shared folders:
- Make sure network discovery is enabled on both computers (see Common Mistakes).
- Check that the folder is actually shared (right-click > Properties > Sharing tab).
- Try accessing via IP address instead of computer name.
- Disable Windows Firewall temporarily to test (re-enable after).
If the connection drops frequently:
- Move the computers closer together.
- Reduce interference from other devices (microwaves, cordless phones).
- Update your Wi-Fi drivers (via Device Manager or your manufacturer's site).
Frequently Asked Questions
Do both computers need internet for this to work?
No. The connection is a direct Wi-Fi link. Internet is only needed if you want to share an internet connection, but for file sharing it's not required.
Can I use this to play LAN games?
Yes, as long as the games support LAN play. Both computers will be on the same local network, so you can host or join a LAN game.
Which method is faster: Mobile Hotspot or Ad Hoc?
They are similar in speed. Mobile Hotspot is generally more stable and easier to set up, so it's recommended for most users.
Can I connect more than two computers this way?
Yes, both methods allow multiple devices to connect, but the more devices, the slower the connection. Mobile Hotspot supports up to 8 devices typically.
Does this work on Windows 11?
Yes, both methods work on Windows 11 as well, though the settings menus may look slightly different.
Is it safe to use a hosted network?
Yes, as long as you use a strong password and keep your firewall enabled. The network is encrypted with WPA2, which is secure for temporary use.