Direct Connection With an Ethernet Cable
The simplest way to connect two computers is with an Ethernet cable plugged directly into both machines' network ports. This works on Windows, Mac, and Linux computers that have an Ethernet jack. One computer does not need to be a server — they recognize each other automatically and can share files, printers, or an internet connection.
Plug a standard Ethernet cable into the network port on each computer. Windows will detect the connection within seconds and assign both machines temporary addresses on the same local network. On a Mac, open System Preferences, go to Network, and you should see the Ethernet connection listed as active. The computers can now see each other in file sharing without any setup beyond that.
This method works best for transferring large files or setting up a small two-computer network. It does not require a router, internet connection, or any software installation. The connection is stable and fast — typically 100 Mbps to 1 Gbps depending on your cable and hardware.
Key Takeaways
- An Ethernet cable plugged directly into both computers' network ports creates an when ready connection with no setup required.
- Windows and Mac both auto-detect a direct Ethernet connection and assign network addresses automatically.
- WiFi connection requires both computers to join the same network, either through a router or by creating a hotspot on one machine.
- USB cable transfer works for older computers or machines without network ports, though it requires driver software on Windows.
- File sharing over any connection requires you to enable sharing in your operating system settings before the other computer can see your files.
WiFi Connection Through a Router
If both computers have WiFi capability, connecting through a shared router is the most common method. Both machines join the same WiFi network — the one broadcast by your router — and can then see each other and share files.
On Windows, click the WiFi icon in the taskbar, select your router's network name, enter the password, and wait for the connection to complete. On Mac, click the WiFi icon in the menu bar, select the same network, and enter the password. Once both computers show a connected status, they are on the same local network.
To share files between them, you will need to turn on file sharing in each computer's settings. On Windows 10 or 11, go to Settings > System > Sharing Options and turn on Network Discovery and File Sharing. On Mac, go to System Preferences > Sharing and check the box for File Sharing. After that, each computer will appear in the other's file browser, and you can drag files between them.
Creating a WiFi Hotspot From One Computer
If you do not have a router, you can create a WiFi hotspot from one computer and have the other join it. This turns one machine into a temporary wireless access point that the second computer can connect to.
On Windows 10 or 11, go to Settings > Network & Internet > Mobile Hotspot, turn it on, and note the network name and password shown on screen. The second computer will see this network in its WiFi list and can join it like any other network. On Mac, go to System Preferences > Sharing, select Internet Sharing, choose the connection type (Ethernet or WiFi), check the WiFi box, and click Start. Again, the second computer will see the network and can join it.
This method works well for temporary connections or when a router is not available. The computer hosting the hotspot uses more battery power, so plug it in if you plan to keep the connection active for more than an hour.
USB Cable Transfer on Windows
Older computers or machines without network ports can connect via USB cable, though this method is slower and requires driver software on Windows machines.
Plug a USB cable into a USB port on each computer. Windows will search for and install a driver automatically — this may take a minute or two. Once the driver is installed, the computers will recognize each other and you can copy files between them using Windows Explorer. On Mac, this method is not necessary because Macs have built-in support for USB file transfer without drivers.
USB transfer is practical only for moving files once or twice, not for ongoing file sharing. The transfer speed is limited by the USB standard — typically 480 Mbps for USB 2.0 or 5 Gbps for USB 3.0 — which is slower than Ethernet or WiFi for large files.
Enabling File Sharing on Both Computers
Once the physical or wireless connection is made, you must turn on file sharing in your operating system before the computers can exchange files. Without this step, the computers can see each other on the network but cannot access each other's folders.
On Windows, go to Settings > System > Sharing Options, turn on Network Discovery, and turn on File Sharing. Then go to Settings > System > Remote Desktop and decide whether to allow the other computer to control this one remotely — this is optional. On Mac, go to System Preferences > Sharing, check File Sharing, and click the plus sign to add the folders you want to share. You can also set permissions so only certain user accounts can access each folder.
After file sharing is on, open File Explorer on Windows or Finder on Mac and look for the other computer's name in the sidebar under Network. Click it, enter your username and password if prompted, and you will see the shared folders. Drag files into or out of these folders to transfer them.
Troubleshooting a Connection That Does Not Appear
If the computers are connected but do not see each other, the problem is usually file sharing being turned off or a firewall blocking the connection.
First, confirm both computers are on the same network. On Windows, open Command Prompt and type ipconfig, then look at the IPv4 Address. On Mac, go to System Preferences > Network and check the IP address. Both should start with the same numbers — for example, both might start with 192.168. If they do not, one computer is on a different network and needs to rejoin the correct one.
Next, check that file sharing is actually turned on. Go back to the sharing settings on both machines and confirm the toggles are on. If they are, restart both computers — sometimes the network service needs to be refreshed. If the computers still do not appear, check your firewall. On Windows, go to Settings > Privacy & Security > Windows Defender Firewall > Allow an App Through Firewall and make sure File and Printer Sharing is checked. On Mac, go to System Preferences > Security & Privacy > Firewall Options and add both computers to the allowed list.
Choosing the Right Method for Your Situation
Use an Ethernet cable if you need the fastest, most stable connection and both computers have network ports. This is best for transferring large files or setting up a permanent two-computer network.
Use WiFi through a router if you already have one and want a wireless connection. This is the most common setup and works with any computer that has WiFi.
Use a WiFi hotspot if you do not have a router and need a temporary wireless connection. Keep in mind the host computer will drain battery faster.
Use USB only if neither Ethernet nor WiFi is available. It is slower and requires driver installation on Windows, so it is best reserved for one-time file transfers.
Frequently Asked Questions
Can I connect a Windows computer to a Mac?
Yes. Both Windows and Mac support standard Ethernet and WiFi connections, and both can share files over a local network. Use the same steps — plug in an Ethernet cable or join the same WiFi network — and then turn on file sharing in each operating system. The computers will see each other and exchange files without any special software.
Do I need a router to connect two computers?
No. You can plug an Ethernet cable directly into both computers, or create a WiFi hotspot from one computer and have the other join it. A router is convenient if you have multiple devices, but it is not required for two computers to communicate.
Why can the computers see each other but not share files?
File sharing is turned off. Go to your sharing settings and turn on File Sharing or Network Discovery. On Windows, also check that your firewall is not blocking the connection. Restart both computers after changing these settings.
How fast is the file transfer between two computers?
Ethernet is fastest — typically 100 Mbps to 1 Gbps. WiFi is usually 20 to 100 Mbps depending on your router and distance. USB is 480 Mbps for USB 2.0 or 5 Gbps for USB 3.0. For a 1 GB file, Ethernet takes about 1 to 10 seconds, WiFi takes 10 to 50 seconds, and USB takes 1 to 20 seconds.
Can I use this connection to share an internet connection?
Yes. If one computer has an internet connection and you connect it to the other via Ethernet or WiFi hotspot, the second computer can use the first one's internet. On Windows, go to Settings > Network & Internet > Mobile Hotspot and turn it on. On Mac, go to System Preferences > Sharing > Internet Sharing. The second computer will see the connection in its network list and can join it.