Want to transfer files between two PCs or set up a local network without relying on Wi-Fi? One of the fastest and most stable methods is using a LAN (Ethernet) cable to connect two computers directly. Whether you're a gamer, IT student, or just looking for a quick file-sharing solution, this guide is for you.

how to connect 2 computers with lan cable
🔌 What You Need
Before we dive into the steps, make sure you have:
-
✅ Two computers with Ethernet (LAN) ports
-
✅ One Ethernet (RJ45) cable – CAT5e, CAT6, or higher
-
✅ Windows or Linux operating system (this guide focuses on Windows)
💡Note: Most modern computers support Auto-MDI/X, so you don’t need a crossover cable — a standard Ethernet cable works fine.
🧭 Step-by-Step: How to Connect 2 Computers with LAN Cable
Step 1: Plug in the LAN Cable
Connect one end of the LAN cable to Computer A and the other end to Computer B.
Step 2: Set IP Addresses Manually
On Windows 10 / 11:
-
Go to
Control Panel > Network and Sharing Center > Change adapter settings. -
Right-click on Ethernet, then select Properties.
-
Click on
Internet Protocol Version 4 (TCP/IPv4), then click Properties. -
For Computer A, set:
-
IP address:
192.168.1.1 -
Subnet mask:
255.255.255.0
-
-
For Computer B, set:
-
IP address:
192.168.1.2 -
Subnet mask:
255.255.255.0
-
Click OK to save the settings on both PCs.
Step 3: Enable File and Printer Sharing
-
Go to
Control Panel > Network and Sharing Center > Advanced sharing settings. -
Turn on Network Discovery and File and Printer Sharing on both computers.
-
Ensure both PCs are on the same private network profile.
Step 4: Share Folders or Drives
On either computer:
-
Right-click the folder or drive you want to share.
-
Choose Properties > Sharing > Advanced Sharing.
-
Check “Share this folder” and give it a recognizable name.
-
Click on Permissions to control access (read or write).
Step 5: Access Shared Content
-
On Computer A, press
Win + Rand type\192.168.1.2to access Computer B. -
On Computer B, type
\192.168.1.1to access Computer A.
Shared folders will now be visible and accessible between the two systems.
🧪 What Can You Do After Connecting?
-
✅ Transfer large files quickly (much faster than USB or Wi-Fi)
-
✅ Set up a LAN multiplayer game environment
-
✅ Create a peer-to-peer local network
-
✅ Use one PC’s internet (via bridging or ICS)
🛠️ Troubleshooting Tips
| Problem | Solution |
|---|---|
| No network detected | Check cable and port lights; try another Ethernet port |
| Can’t access shared folder | Recheck sharing permissions and firewall settings |
| 'Unidentified network' error | Ensure both PCs have matching subnet masks |
🌐 Bonus: Can You Share Internet via LAN Cable?
Yes. On the computer with an internet connection:
-
Go to
Network Connections. -
Right-click on the active internet connection > Properties > Sharing tab.
-
Enable 'Allow other network users to connect...'
-
Choose the Ethernet adapter connected to the other computer.
📦 Final Thoughts
Connecting two computers using a LAN cable is a fast, secure, and efficient method for sharing files or creating a small network. Unlike cloud storage or USB drives, LAN connections offer real-time communication and higher speeds, making it ideal for office setups, IT labs, or gaming LAN parties.

2 comments
Situs pin88 08/29/2025
Thanks on your marvelous posting! I actually enjoyed reading it, you will be a great author.I will remember to bookmark your blog and will eventually come back very soon. I want to encourage that you continue your great writing, have a nice day!
Best WordPress SEO 09/12/2025
Heya i am for the first time here. I came across this board and I find It truly useful & it helped me out much. I hope to give something back and help others like you helped me.