Connecting 2 Computers Via Ethernet Cable

7 min read

Connecting Two Computers via Ethernet Cable

Connecting two computers via Ethernet cable is one of the fastest and most reliable ways to transfer files, share printers, synchronize documents, and establish a private local network. Unlike Wi-Fi, a wired connection provides stable performance, low latency, and consistent speeds, making it ideal for home offices, classrooms, workshops, and small businesses. Most modern computers can communicate directly with each other using a standard Ethernet cable and manually assigned IP addresses. The process involves physically linking both devices, configuring their network settings, testing the connection, and enabling any sharing features you need Worth keeping that in mind..

How Connecting Two Computers via Ethernet Cable Works

A direct Ethernet connection creates a small local area network (LAN) containing two devices. Each computer acts as both a network client and a network server, allowing them to exchange data directly without a router, switch, or internet connection.

The Ethernet cable carries network data using electrical signals. For the computers to understand those signals, they need compatible network settings, particularly IP addresses. Both computers should normally be placed on the same subnet so they can identify and communicate with one another Easy to understand, harder to ignore..

Here's one way to look at it: you can configure:

  • Computer A: 192.168.10.1
  • Computer B: 192.168.10.2
  • Subnet mask on both computers: 255.255.255.0

These addresses belong to the same private network, even though no router is present. When you check the IP address of Computer B from Computer A, the operating system should display 192.168.10.2 Not complicated — just consistent..

What You Need

To connect two computers, you generally need:

  1. Two Ethernet-capable network adapters
    Most desktop and laptop computers include an Ethernet port. Modern laptops may also have a USB-to-Ethernet adapter.

  2. One Ethernet cable
    A standard Cat5e or Cat6 patch cable is sufficient for most home and office networks. A Cat6 or Cat6a cable can support longer distances and higher performance That's the part that actually makes a difference. That's the whole idea..

  3. Administrator access on both computers
    You need permission to change IP addresses, firewall rules, and sharing settings.

Do You Need a Crossover Cable?

Older Ethernet standards required a crossover cable when connecting two similar devices, such as two computers. On the flip side, virtually all modern network adapters support Auto-MDI/MDIX, which automatically detects the electrical orientation of the connection.

Which means, a regular straight-through Ethernet cable is usually all you need. A crossover cable may still be necessary for very old equipment that lacks Auto-MDI/MDIX, but it is rarely required today.

Step 1: Connect the Ethernet Cable

Turn off or disconnect both computers if you prefer, although modern computers generally support connecting a live Ethernet cable safely.

  1. Locate the Ethernet port on each computer.
  2. Insert one end of the Ethernet cable into Computer A.
  3. Insert the other end into Computer B.
  4. Wait for each operating system to detect the connection.

An Ethernet connection usually includes:

  • A small green or amber light near the port
  • A network icon in the system tray
  • An “Ethernet Connected” notification
  • A network profile such as “Public,” “Private,” or “Domain”

If the lights do not illuminate, try another Ethernet port or cable That's the whole idea..

Step 2: Check the Network Status

Before assigning addresses, confirm that both computers recognize the wired connection.

On Windows 10 and Windows 11

Open Settings, select Network & Internet, and then choose Ethernet. That said, the status should show that the network is connected. If it does not, open Advanced network settings, select More network settings, and examine the Network Connections panel.

Double-click the relevant Local Area Connection or Ethernet entry to see its status. You can also open Command Prompt and enter:

ipconfig

Look for the Ethernet adapter section rather than the Wi-Fi or Bluetooth section.

On macOS

Open System Settings, select Network, and choose Ethernet. You can also open Terminal and run:

ifconfig

The Ethernet interface may appear as en0, en1, or another identifier Not complicated — just consistent..

On Linux

Run the following command:

ip address

Find the wired interface, such as eth0, enp3s0, or eno1 Surprisingly effective..

The important point is to make sure the system sees an active wired interface before proceeding.

Step 3: Assign Static IP Addresses

When two computers are connected directly without a router, there is usually no Dynamic Host Configuration Protocol (DHCP) server to assign IP addresses automatically. Static IP addresses provide the simplest and most dependable solution It's one of those things that adds up..

You can use any valid private address range, but 192.168.Now, 10. Here's the thing — x is a convenient choice. Avoid using an address that your router may later assign through DHCP, especially if you intend to connect the network to the internet later.

Configuring Windows

The following method works in Windows 10 and Windows 11:

  1. Open Settings.
  2. Select Network & Internet.
  3. Choose Ethernet.
  4. Select the adapter under Advanced network settings.
  5. Open More network settings.
  6. Double-click Ethernet or Local Area Connection in the Network Connections window.
  7. Select Internet Protocol Version 4 (TCP/IPv4).
  8. Click Properties.
  9. Select Use the following IP address.
  10. Enter the desired IP address and subnet mask.

For Computer A, use:

IP address: 192.168.10.1
Subnet mask: 255.255.255.0
Default gateway: Leave blank

For Computer B, use:

IP address: 192.168.10.2
Subnet mask: 255.255.255.0
Default gateway: Leave blank

Leave the preferred DNS server fields blank if you are creating a standalone local network. Click OK, and then repeat the process for the second computer.

Configuring macOS

  1. Open System Settings.
  2. Select Network.
  3. Choose **

On macOS, after selecting Ethernet, proceed as follows:

  1. Click the Advanced… button (or the gear icon) to open the IPv4 configuration panel.
  2. Change the Configure IPv4 dropdown from Using DHCP to Manually.
  3. In the IP address field, type the address you have chosen for the machine (for example, 192.168.10.1 for the first computer and 192.168.10.2 for the second).
  4. In the Subnet mask field, enter 255.255.255.0.
  5. Leave the Router and DNS Server fields empty, since no external gateway is required for a isolated link.
  6. Press OK, then click Apply to save the changes.

If you prefer to manage the address from the command line, open Terminal and run:

sudo ifconfig en0 down
sudo ifconfig en0 inet 192.168.10.1 netmask 255.255.255.0 up

Replace en0 with the actual interface name and adjust the address as needed. 168.10.The same steps can be repeated on the second Mac, using 192.2 Which is the point..

Linux

On a Linux system the interface can be configured either through the distribution’s network manager or directly with the ip utility. A quick, distribution‑agnostic method is:

# Bring the interface down
sudo ip link set dev eth0 down

# Assign the static address
sudo ip addr add 192.168.10.1/24 dev eth0

# Bring the interface back up
sudo ip link set dev eth0 up

For the companion machine, use:

sudo ip link set dev eth0 down
sudo ip addr add 192.168.10.2/24 dev eth0
sudo ip link set dev eth0 up

If you manage networking through a file such as /etc/network/interfaces or a NetworkManager profile, replace the dynamic‑address lines with static entries that match the scheme described above Simple, but easy to overlook..

Verification and Conclusion

With the addresses in place, each computer should now be able to reach the other. From a command prompt or terminal, run a ping test:

ping 192.168.10.2   # from Computer A
ping 192.168.10.1   # from Computer B

Successful replies confirm that the link is functional. If the ping fails, double‑check that the correct interface was selected, that the subnet mask is consistent, and that no firewall rules are blocking ICMP traffic.

Simply put, assigning static IP addresses on a direct, router‑less connection provides a reliable, predictable network topology. By configuring each machine with a unique address from the same private range, enabling the interface, and verifying connectivity, you establish a stable foundation for file sharing, remote administration, or any other purpose that requires direct communication between the two systems.

Out the Door

Just Shared

Cut from the Same Cloth

Hand-Picked Neighbors

Thank you for reading about Connecting 2 Computers Via 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