Let’s assume you have two computers at home and you want to connect them together so that you can easily share an internet connection between the two machines or transfer photos, music and other files from one computer to another. How do you do this?
Connect Two Computers Directly
There are two options – you can either buy a router or, if you are looking for something more simple and don’t want to spend money on new networking hardware, you can connect the two computers using a commonly-available cable. The latter method doesn’t involve any complicated network settings and you will still be able to share files, internet connection, and even printers between computers.
Things you need:
To set up this basic wired home network, all you need is an inexpensive Ethernet crossover cable and the other requirement is that network cards* (also known as LAN or Ethernet cards) should be installed on each of you computers.
[*] This should not be an issue because network cards are available on most newer machines by default but if you are working with a very old computer, you can either attach an internal LAN card to your computer’s motherboard or go for a USB Network adapter that will turn a USB port into an Ethernet (RJ45) port.

Also see: How to Identify Computer Cables and Connectors
An Ethernet crossover cable looks like a standard Ethernet cable but the internal wiring is a little different. You can purchase crossover cables at Amazon.com or from your local computer store. If you have trouble finding them, you can purchase an inexpensive crossover adaptor and that will let you use any standard Ethernet cable as a crossover cable.
Connect Computers with an Ethernet Crossover Cable
Before connecting the two computers with a physical cable, make sure that both machine are using the same workgroup*. Here is step-by-step guide that explains how you can change the workgroup of your computers.
Changing workgroup in Windows XP – From the Start menu, right-click “My Computer.” Select Properties in the drop-down menu, and then select the second tab that says “Computer Name” from the System Properties window. Now click the “Change…” button, enter a unique Workgroup name and reboot your computer.
Changing workgroup in Windows 7 or Vista – Open the Control Panel, type “Workgroup” in the search box, and select the entry that says “Change Workgroup Name.” Click the “Change…” button, enter a Workgroup name and restart the computer. Windows 7 users can skip one step; simply type “Workgroup” in the search box in the start menu, and select the first entry, then proceed as above.
Now that the workgroups are same for both computers, connect the two computers together using the Ethernet crossover cable. Simply plug-in one end of the crossover cable into the network adapter of Computer A and connect the other end of the cable to the network adapter of Computer B.
Windows will automatically recognize the new network, and you can now easily view files and folder that the other computer has shared. Simply open Networks from the Start Menu (or the Control Panel), and you should see the other computer by its name. You can then browse any shared files on the other computer, and can even utilize shared printers.
Troubleshooting – If you do not see the other computer under Networks, you probably have a prompt at the top of your Network window saying that Network discovery is turned off (screenshots below). Select “Turn on Network Discovery and File Sharing.” In the next prompt, select “No, make the network I am connected to a private network.” Now you should see the other computer on the home network.
[*] While it is possible to share files between two computers connected with a crossover cable without making them part of the same workgroup, the method will only work if both computers have this network set as a private network, and may still cause problems. It is therefore advisable to have both computers on the same workgroup before sharing files and printers.
Share an Internet Connection Between Two Computers
There are scenarios where you may want to share the same internet connection between two computers. For instance:
Situation A - You have setup a Wi-Fi network at home but your old desktop computer doesn’t have a wireless network card. In that case, you can use the laptop to connect to the internet wirelessly and then share that same connection with the desktop over a crossover Ethernet cable.
Situation B – You have a netbook with a built-in cellular data connection. You can share that connection with any another computer at home through the crossover Ethernet cable.
Situation C – You use a (slow) Wireless USB modem with your laptop computer while your desktop is connected to an ADSL Broadband line and there’s no router at home. For any bandwidth intensive tasks, like when you want to backup photos from your laptop to an online service, you can connect the laptop to the desktop and things will happen much faster.
OK, let’s look at the steps required for sharing an Internet connection.
First, if you only wish to share internet connection and not files, both computers need not belong to the same workgroup. All you need to do is to connect the two computers with the Ethernet crossover cable, and then turn on Internet connection sharing in the computer that already has an Internet connection. The instructions vary for different versions of Windows:
For Windows XP – Select “Network and Internet Connections” from the Control Panel and click “Network Connections.”
Right-click on the network connection you wish to share (the one connected to the internet), select Properties, click on the “Advanced” tab, and then check the box that says “Allow other network users to connect through this computer’s Internet connection.” Click OK, and the second computer that you have connected to this computer with the Crossover Cable should have internet access now.
For Windows 7 and Vista – Open Control Panel, enter “network connections” in the search box on the top right and select “View Network Connections.”
Right-click on the network connection you wish to share (this must be the one connected to the internet) and select Properties. Select the "Sharing" tab and then check the option that says “Allow other network users to connect through this computer’s Internet connection.” Click OK, and the other computer you have connected to this Windows 7 or Vista computer should have internet access now.
Related guide: Connect your Laptop to the TV Screen
Find this article at: http://www.labnol.org/software/connect-computers-without-router/11049/
Tags: Archives, ethernet, How-to Guides and Software Tutorials, networking, router, Software
Reader Comments
Thats a good tutorial. I tried connecting my old machine with my notebook and it works like a charm.
Written by Ramkumar on 11.17.09
Nice info..Great share. Some Computer users are not aware of this thing.
Written by Abhijeet Mathur on 11.17.09
Can this crossover cable be used to connect two Mac Books? A step-by-step instruction as above would be useful. Thanks!
Written by Swami on 11.17.09
Thanks, but what if my computers have only one LAN card each and I want to share my internet connection.. Is this possible? Or should I possess two LAN card to connect these two cables (internet & network) to my computer?
Written by Jibin on 11.17.09
You can also connect two or morelaptop having Vista OS by adhoc network connection(WI-Fi enabled laptops needed).
1)Simply go to setup network connection and select adhoc network in it.
2)Next step is to select name of network and security metod ,chose WEP and give the password.
3)In next screen you will get the bar saying”share your internet connection” click it and its done.
4)Other system can simply find new connection name in available connection.Simply connect to it and give the same password which was provided on the time of creation.Vola
you can get the internet connectivity without router.
Me and my roommates doing this for about 8 months. Enjoy….
Written by satya sheel pandey on 11.17.09
There is another method to connect wi-fi enabled laptop having Vista OS.
1)Goto setup network connection.
2)select adhoc network connection.
3)IN next screen fill in network name you want.Select WEP as security mechanism,and fill any password you want(this will be used by another user).
4)next screen prompt you for “share internet connection”,click on it,and its done.
Other user can find the wireless connection,and connect to the connection just created by providing the same password which was used while creation of network.
Me and my roommates has been doing this for 8 month,and enjoy internet connection sharing without router.Enjoy…
#)
Written by satya sheel pandey on 11.17.09
Dear Mr.Agarwal very nice & great work, your service for the humanity is wonder full keep it up,
God Help you.
regards
Written by Ameer on 11.17.09
With the present day OS and NIC s, an Ethernet cable would suffice to transfer data. There is simply no need for a crossover-adapter. The network cards and OS s are smart enough to rejig the properties of a straight-through/roll-over cable to function as a crossover.
Your efforts are much appreciated, Amit. Keep it going.
Written by Venu on 11.17.09
Using Wi-Fi we can also directly connect the two computers – without using a Wi-Fi modem at all. Each Wifi card is a transceiver – a receiver AS WELL AS a transmitter. SO, all you have to do is create an ad-hoc Wifi connection, where multiple Wi-Fi enabled computers can network to each other – without the need of a Wifi modem/router. This is possible in Windows XP / Vista / 7
Written by Ankit on 11.17.09
Can I use “USB to Ethernet” to make my printer (which has usb) to shareable in LAN? or “USB to Ethernet”works only in computer ?
Written by Anup on 11.17.09
Only Ethernet cross over cable is enough to connect two PC’s. If You have Ethernet Card installed in your two machines. Now a days Ethernet card comes in-build in the motherboard.
Written by Raj Krishna on 11.18.09
Thanks Amit bai..that was a cool one..i will definetly try this as i was looking for such a step by step to impliments this..thanks once again…
Written by Unni on 11.18.09
Thanks for the tips. Digital inspiration rocks !
Written by Nasif on 11.18.09