Connect Two Pc With Ethernet Cable

6 min read

Connect two pc with ethernet cable is a straightforward method for creating a fast, reliable link between computers without needing a router or switch. Worth adding: this direct connection enables quick file transfers, network gaming, or shared peripheral use, making it ideal for small offices, home labs, or troubleshooting scenarios. Below you’ll find a complete guide that covers cable selection, configuration steps for Windows, macOS, and Linux, testing procedures, and practical tips for sharing resources.

Why Connect Two PCs Directly?

A point‑to‑point Ethernet link offers several advantages over wireless or routed connections:

  • Low latency: Data travels straight between the NICs, ideal for time‑sensitive applications.
  • High throughput: Gigabit Ethernet can sustain up to 1 Gbps (or 10 Gbps with compatible hardware).
  • Security: No wireless signals to intercept; the link exists only between the two machines.
  • Simplicity: No extra hardware beyond the cable and network adapters.

Whether you need to move large video files, synchronize backups, or set up a temporary LAN for multiplayer gaming, a direct Ethernet link provides a dependable foundation The details matter here..

Types of Ethernet Cables

Choosing the correct cable type is essential for a successful PC‑to‑PC connection It's one of those things that adds up..

Cable Type Pin‑out Typical Use
Straight‑through Identical wiring on both ends (T568A‑T568A or T568B‑T568B) Connecting a PC to a switch, router, or hub
Crossover Transmit pins swapped with receive pins (T568A‑T568B) Directly linking two similar devices (PC‑PC, switch‑switch)

Modern Gigabit Ethernet NICs often support auto‑MDI/MDIX, which automatically detects and corrects the pin‑out, allowing a straight‑through cable to work in many cases. That said, for older 10/100 Mbps adapters or when you want guaranteed compatibility, a true crossover cable is the safest bet.

Tip: Look for the label “Crossover” on the cable jacket or verify the wiring scheme if you’re making your own Worth keeping that in mind..

Step‑by‑Step Guide to Connect Two PCs

Below are the configuration steps for the three major operating systems. The physical setup is identical: plug one end of the Ethernet cable into the network port of PC A and the other end into PC B.

1. Physical Connection

  1. Power off both computers (optional but recommended for initial setup).
  2. Insert the Ethernet cable firmly into each NIC’s RJ‑45 port.
  3. Power the machines back on.

2. Windows Configuration

  1. Open Network Settings

    • Right‑click the network icon in the taskbar → Open Network & Internet settings → Change adapter options.
  2. Select the Ethernet Adapter

    • Identify the adapter linked to the cable (usually labeled “Ethernet”).
  3. Assign a Static IP Address

    • Right‑click the adapter → Properties → select Internet Protocol Version 4 (TCP/IPv4) → Properties.
    • Choose Use the following IP address and enter:
      • PC A: IP 192.168.0.1, Subnet mask 255.255.255.0
      • PC B: IP 192.168.0.2, Subnet mask 255.255.255.0
    • Leave the Default Gateway and DNS fields blank (or set them to the same values if you prefer).
  4. Enable Network Discovery and File Sharing (optional)

    • Go to Control Panel → Network and Sharing Center → Change advanced sharing settings.
    • Turn on Network discovery and File and printer sharing for the Private profile.
  5. Test the Link

    • Open Command Prompt and run ping 192.168.0.2 from PC A (or the reverse). Successful replies indicate a working connection.

3. macOS Configuration

  1. Open System Preferences → Network.
  2. Select the Ethernet interface from the left pane.
  3. Click Configure IPv4 and choose Manually.
  4. Enter the IP address and subnet mask:
    • Mac A: 192.168.0.1, mask 255.255.255.0
    • Mac B: 192.168.0.2, mask 255.255.255.0
  5. Leave Router and DNS Servers empty.
  6. Click Apply.
  7. To verify, open Terminal and run ping 192.168.0.2.

4. Linux Configuration (using NetworkManager or command line)

Using nmcli (NetworkManager)

# On PC A
sudo nmcli con add type ethernet ifname eth0 con-name pc-link ip4 192.168.0.1/24
sudo nmcli con up pc-link

# On PC B
sudo nmcli con add type ethernet ifname eth0 con-name pc-link ip4 192.168.0.2/24
sudo nmcli con up pc-link

Using ifconfig (legacy)

# PC A
sudo ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up

# PC B
sudo ifconfig eth0 192.168.0.2 netmask 255.255.255.0 up

Test with ping 192.168.0.2 from the opposite machine Most people skip this — try not to..

Testing the Connection

After assigning IP addresses, verify connectivity:

  • Ping test: ping <opposite‑PC‑IP> should return replies with low latency (< 1 ms on a direct link).
  • Link speed: In Windows, open the adapter status; mac

…open the adapter status; mac OS users can view the link speed by holding the Option key while clicking the Wi‑Fi/Ethernet icon in the menu bar and selecting Open Network Diagnostics, then navigating to the Info tab. The reported Link Speed should read 1 Gbps (or 100 Mbps if the cable or NICs are limited to Fast Ethernet).

On Linux, the ethtool utility provides a quick read‑out:

# Replace eth0 with your interface name if different
sudo ethtool eth0 | grep "Speed"

You should see something like Speed: 1000Mb/s for a gigabit link. If the speed appears lower, verify that:

  1. The cable is Category 5e or higher (Cat 6 is ideal for 1 Gbps).
  2. Both NICs support the advertised speed and are not forced to a lower mode via driver settings.
  3. No intermediate devices (such as a switch) are inadvertently inserted; a direct PC‑to‑PC link should be a crossover‑type connection, though modern NICs auto‑MDI/MDI‑X and will work with a straight‑through cable as well.

Troubleshooting Tips

Symptom Likely Cause Fix
No ping replies, “Destination host unreachable” IP address/subnet mismatch or cable not seated Double‑check IP/subnet, reseat RJ‑45 connectors
Ping works but latency > 10 ms or intermittent loss Cable damage, EMI, or NIC driver issues Replace cable, try a different port, update NIC drivers
Link speed shows 100 Mbps despite Cat 6 cable NIC or driver forced to 100 Mbps, or auto‑negotiation failed In Windows: Adapter Properties → Link Speed & Duplex → set to 1.Worth adding: 0 Gbps Full Duplex (or Auto Negotiation). <br>On macOS: Hold Option, click the Ethernet icon → Manually set speed if needed.<br>On Linux: sudo ethtool -s eth0 speed 1000 duplex full autoneg off (then test).
File sharing fails after ping succeeds Firewall blocking SMB/AFP ports Temporarily disable firewall or create an inbound rule for TCP 445 (Windows SMB) or TCP 139/445 and UDP 137‑138 (NetBIOS) as appropriate.

Final Thoughts

By following the hardware‑level steps (secure cabling, power cycling) and then assigning matching static IP addresses on each machine, you create a reliable point‑to‑point Ethernet link that bypasses routers or switches. Verifying connectivity with ping and confirming the negotiated link speed ensures the physical layer is healthy, while optional sharing services let you transfer files, stream media, or run network‑dependent applications directly between the two systems Worth knowing..

Whether you’re setting up a quick backup workstation, testing software in an isolated environment, or simply moving large files between PCs without the overhead of a wireless network, this direct Ethernet connection offers low latency, deterministic performance, and full control over the network configuration. With the steps outlined above, you can confidently establish and troubleshoot a PC‑to‑PC link on Windows, macOS, or Linux, and enjoy the benefits of a dedicated, high‑speed connection The details matter here..

Just Went Online

Hot off the Keyboard

Worth the Next Click

One More Before You Go

Thank you for reading about Connect Two Pc With Ethernet Cable. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home