How to Connect Computers Together and Make Them Communicate
A small wired network can be created by connecting computers to a switch, assigning compatible IP addresses and testing the connection with ping.
Equipment Required
- Two or more computers.
- One Ethernet switch.
- Cat5e or Cat6 Ethernet cables.
- A router if internet access is required.
- Wireless access point if Wi-Fi devices will be used.
Basic Network Layout
Computer 1 ─┐
├── Switch ─── Router ─── Internet
Computer 2 ─┘
Step 1: Connect the Hardware
- Connect the switch to electrical power.
- Connect each computer to the switch using an Ethernet cable.
- Connect the switch to the router if internet access is needed.
- Check that the link lights become active.
Step 2: Configure IP Addresses
The computers must use addresses from the same network. For example:
Computer 1: 192.168.10.10
Computer 2: 192.168.10.11
Subnet mask: 255.255.255.0
If a router is providing DHCP, the computers can be configured to obtain their IP addresses automatically.
Step 3: Test with Ping
Ping sends an ICMP request to another device and waits for a reply. It is one of the first tools used to test network connectivity.
ping 192.168.10.11
A successful result normally shows replies, response times and no lost packets.
Basic Troubleshooting
No Link Light
Check the cable, network port and switch power.
Wrong IP Address
Use ipconfig or ifconfig to inspect settings.
Different Networks
Ensure devices use compatible addresses and subnet masks.
Firewall Blocking
Check whether the operating system firewall is blocking ping or file sharing.
Useful Commands
ipconfig
ipconfig /all
ping 127.0.0.1
ping 192.168.10.1
tracert example.com
nslookup example.com
Testing tip: Test in stages: first test the local computer, then the network gateway, then another computer, and finally an internet address.
Summary
To make computers communicate, connect them correctly, use compatible IP addresses, confirm the cables and test the network step by step with ping and other diagnostic commands.