Connecting two computers directly with an ethernet cable remains one of the most reliable methods for transferring large files, sharing an internet connection, or setting up a quick local multiplayer gaming session without relying on a router or Wi-Fi. While wireless technology has become ubiquitous, a wired peer-to-peer link offers significantly higher speeds, lower latency, and enhanced security because the data never traverses a shared network infrastructure. Whether you are migrating terabytes of data to a new workstation, troubleshooting a network issue, or creating a temporary bridge for internet sharing, understanding the hardware requirements and software configuration steps is essential for a successful connection.
Understanding the Hardware Requirements
Before plugging in any cables, it is critical to verify the physical ports available on both machines. Most modern laptops and desktops feature a standard RJ45 port, but the rise of ultra-thin ultrabooks has seen this port removed in favor of USB-C or Thunderbolt connectivity.
Worth pausing on this one.
Cable Categories and Speed Limits
Not all ethernet cables are created equal. The category rating printed on the jacket determines the maximum bandwidth and frequency the cable supports It's one of those things that adds up..
- Cat5e (Category 5 Enhanced): Supports up to 1 Gbps (Gigabit) at 100 MHz. This is the minimum standard for modern direct connections.
- Cat6 / Cat6a: Supports up to 10 Gbps at 250–500 MHz. Ideal if both computers have 2.5G, 5G, or 10G network interface cards (NICs).
- Cat7 / Cat8: Shielded cables designed for data center speeds (up to 40 Gbps), generally overkill for a simple two-computer link but excellent for future-proofing.
The Crossover Cable Myth
In the era of 10/100 Mbps Ethernet (Fast Ethernet), connecting two network interfaces directly required a specialized crossover cable where the transmit (Tx) and receive (Rx) wire pairs were swapped at one end. Without this, the transmit pins on Computer A would connect to the transmit pins on Computer B, resulting in no data flow.
That said, virtually every network card manufactured since the widespread adoption of Gigabit Ethernet (roughly post-2005) supports Auto-MDIX (Automatic Medium-Dependent Interface Crossover). Worth adding: this intelligent circuitry detects the wiring configuration and automatically swaps the internal logic to match. This means a standard straight-through patch cable—the exact same cable used to connect a PC to a router—works perfectly for a direct PC-to-PC link today. You do not need to hunt down a specialized crossover cable unless you are working with legacy hardware over 15 years old.
Adapters for Modern Ports
If one or both machines lack a built-in RJ45 jack, you will need a USB-to-Ethernet adapter (USB-A) or a USB-C/Thunderbolt-to-Ethernet dongle. When purchasing these, ensure the adapter supports Gigabit speeds (1000 Mbps). Many cheap "USB 2.0 to Ethernet" adapters are limited to 10/100 Mbps (Fast Ethernet), which will bottleneck your transfer speeds to roughly 11–12 MB/s, compared to the 110–120 MB/s capable over a Gigabit link And that's really what it comes down to..
Step-by-Step Configuration: Windows 10 and 11
Since a direct cable connection creates an "Unidentified Network" with no DHCP server (router) to hand out IP addresses, you must manually assign static IP addresses on both machines so they can find each other.
1. Physical Connection
Plug one end of the ethernet cable into the RJ45 port (or adapter) of Computer A and the other end into Computer B. Wait a few seconds for the link lights (usually green/orange LEDs near the port) to illuminate, indicating a physical layer connection (Layer 1) has been established.
2. Access Network Adapter Settings
On both computers, press Windows Key + R, type ncpa.cpl, and hit Enter. This opens the classic Network Connections control panel applet, which is faster than navigating through the modern Settings app. Locate the adapter corresponding to your ethernet port (often named "Ethernet," "Ethernet 2," or the brand name of your USB dongle) It's one of those things that adds up..
3. Assign Static IPv4 Addresses
Right-click the ethernet adapter and select Properties. In the list, select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
Select Use the following IP address. You must use a private IP range reserved for local networks (RFC 1918). A common, easy-to-remember scheme is the 192.168.x.x range.
Configuration for Computer A:
- IP address:
192.168.10.1 - Subnet mask:
255.255.255.0(Windows fills this automatically when you click the field) - Default gateway: Leave blank
- Preferred DNS server: Leave blank
Configuration for Computer B:
- IP address:
192.168.10.2 - Subnet mask:
255.255.255.0 - Default gateway: Leave blank
- Preferred DNS server: Leave blank
Critical Rule: The first three octets (192.168.10) must be identical on both machines. The last octet (1 and 2) must be unique. Do not use .0 or .255 as these are reserved for network ID and broadcast addresses. Click OK on all dialog boxes to apply.
4. Set Network Profile to Private
By default, Windows treats an unidentified wired network as Public, which enables the strict firewall profile blocking file sharing and network discovery. You must change this to Private. Go to Settings > Network & Internet > Ethernet. Click on the connected ethernet connection. Under "Network profile type," select Private. This enables Network Discovery and File/Printer Sharing firewall rules automatically That's the whole idea..
5. Enable File Sharing and Discovery (Verification)
Open Control Panel > Network and Sharing Center > Change advanced sharing settings. Expand the Private profile section. Ensure these are selected:
- Turn on network discovery.
- Turn on file and printer sharing.
- (Optional) Turn on password protected sharing if you want to require user credentials for access.
Step-by-Step Configuration: macOS (Ventura, Sonoma, Sequoia)
Apple’s implementation is slightly different but equally straightforward. 254.Which means x. Consider this: x) via APIPA (Automatic Private IP Addressing) if no DHCP is found. macOS uses a "Service Order" list and creates a self-assigned IP (169.While APIPA can work for basic connectivity, manual static IPs are far more reliable for high-throughput tasks like SMB file transfers.
1. Open Network Settings
Go to System Settings > Network. You should see your ethernet adapter listed (e.g., "Ethernet," "USB 10/100/1000 LAN," or the dongle name). If it says "Not Connected" but the cable is plugged in, the link may be down; check the cable or try a different port.
2. Configure IPv4 Manually
Click the Details... button next to the connected ethernet service. Select the TCP/IP tab. Change Configure IPv4 from "Using DHCP" to