Connect Two Computers using a Crossover Cable

Ever needed to connect two computers together without going through a wireless network? I’ve previously written about how to connect two computers wirelessly using an ad-hoc wireless network, but it’s not as fast as being directly connected.

If your computer are on a wired network, you can network two computers and then share files and folders, but it’s a lot of work! A crossover cable is another way to connect two computers and transfer data.

In order for this setup to work, there are a few things you need to make sure are setup or configured properly. I will try to go through all the different steps in this article.

Step 1 – Configure IP Addresses

Usually, if you are using a crossover cable to connect two computers, the computers are not connected to a LAN network. In this case, you will need to configure static IP addresses for each computer.

You have to make sure that both computers have IP addresses that are on the same subnet. For example, if you give one computer an IP address of, then you should give the second computer an IP of

If you used the above IP addresses, you should use a subnet mask of If you use an incorrect subnet mask, the connection will not work.

Lastly, the value for the default gateway should be the same on both machines. You can pick which IP address you want to use, but use it on both computers for the default gateway. Below is how my setup looks for one computer:

connect two computer crossover cable

Step 2 – Crossover Cable

The second thing you need to verify is that you actually have a proper crossover cable. Basically, there are a few different types of crossover cables, but it’s best to get the standard crossover cable where the green and orange pairs are swapped and the brown and blue pairs stay in the same position.

crossover cable

The only pins that need to be crossed are 1,3 and 2,6. So just check your cable on both end and make sure it matches the diagram.

Step 3 – Local User Accounts

If you’re having problems accessing files both ways, you may have to create a user account on each computer that has the same name and same password. This helps get past any kind of Access is Denied errors that may pop up.

Make sure the accounts are administrator accounts also! It’s best to create a new account rather than rename a current account.

Step 4 – Disable Firewalls

Finally, you should disable the firewall on both computers to ensure that none of the file sharing ports are being blocked. You can do this by going to Control Panel and then Windows Firewall. Click on Off.

connect two computers

That’s about it! If you follow all these steps, each computer should be able to access the other properly. If you are having problems, post a comment here and I will try to help! Enjoy!

Comments [28]

  1. Its a great method to connecting two computers using a crossover cable. Thanks for sharing such nice information. It was very valuable.

  2. If I might just add a little bit of clarification and expansion on some of the points above. If you have two computers with gigabit interfaces then do not use a crossover cable as that will limit the connection to 100Mbs, for a gigabit connection you must use a straight through cable, cat 5e or better.

    The important thing about netmasks is that they should be consistent and allow for all computers on that segment, apart from that you can use almost anything you like on a private network. As there are only two computers on this segment you could use anything from to Using the default class c netmask of is fine but not essential.

    Absolutely no need for a default gateway to be set, there is no way off this network and even if you do set it, it could be different on each computer without affecting anything.

    Keep up the good work.

  3. Interesting what you are saying about the cat5 cables I tried this to connect 2 pcs together one running XP Pro and one running Win7 with GB network cards and both show a gb connection with crossover cable but I've not used anything to check the actual transfer speed, how can you connect 2 pcs directly with a staight through cable?

    The issue with this arrangement that I cant seem to resolve is:

    Both pcs have wireless connection and it all works fine with the addition of the cross over cable. I transfer large amounts of data between the 2 pcs and need the systems to use the crossover cable route for this action.

    BUT for some reason the data transfer periodically seems to attempt to use the wireless router path and of course a significant slowing in the transfer. I can check the connection on the cable and it is good. I've tried with both fixed and DCHP ip configuration.

    My question is when moving data between pcs is it possible to force on the wired path and achieve the high throughput needed?


  4. Trevnew, have you tried disabling the wireless card while doing the transfers?

  5. la-cabara,

    Thanks for the suggestion but no I haven't, they work concurrently and independantly of each other 70% of the time and having to disable cards everytime I use it sort of defeats the object of a process running in the background. I'm sure if i did disable it would work 100% but that is not what I'm trying to achieve


  6. I want to connect XP with a windows server 2003 via crossover cable. Is it possible to happen? I ping the address of each other but no connection is there.

  7. thx for this, but its not working, the connection between 2 comps is good, but on the other comp i cant connect to internet

  8. hi i tried all above things but still its not working for me i ve 2 personal computers, i tried at my frnds place with pc & laptop with same cable there it worked…..plz help me…….thnk u.

  9. Hi,

    I'm trying to connect a laptop with vista to a pc with vista using a crossover ethernet cable. I've gone through all the steps above and can see icons for both the laptop and the pc on the network places screen, but when I double click on the icon, I get an error message 0x80070035 Network path not found. I've tried pinging the IP addresses and both computers send and receive all four packets of information without any problem. I've set the computer names and the workgroup for both is the same. Everything seems to be fine, except I can't access either the laptop from the PC or vice versa.

    Note: my intention is just to be able to transfer files from PC to laptop and vice versa, I don't really need to be able to connect to the internet over the crossover cable or anything like that…Any help or suggestions would be hugely appreciated.


  10. Both my desktop (WinXP) and laptop (WinXPPro) are connected via a crossover cable w/ assigned IP addresses. I can PING each successfully (yay!).

    But, in Windows Explorer, each computer cannot see the other. I am logged into both w/ administrator rights. What have I missed?

    Thank you,


  11. Hi, I've connected two laptops and I'm still trying to figure out how to get this to work!

  12. Hi. I have a laptop with Windows 7 and a desktop with Windows XP. But, I am not able to share files between the two computers. I have tried your methods using a cross-cable.

    Please help.

  13. What if one computer is connected to the internet and the other one is not?

  14. @All… All those who have problems in accessing the other computer/laptop: Have you people enabled sharing? That seems to be the only thing holding you people back. Do let me know.

  15. I connect two laptops together using a cross over cable and both computers are seeing each other. However, I'm unable to open either of them from the other due to a access permission error.

    Error//// pc not accessible; you might not have permission to use this network resource. Contact the administrator to find out if you have access permission.
    logon failure: the user has not been granted the requested logon type at this computer.

  16. I have 3 computers, one system having two ethernet card and others with one ethernet card, all are Linux RH OS running, with two cross cables could I connect all the three PC's in one network?

  17. Thanks for the article. Very useful. I can confirm that you should use a straight through cable for gigabit to gigabit communication. If you use a crossover cable, you'll only get 100mbps. Real world file copy/paste results: 100mbps -> 10 MB/s, 1000mbps -> 22 MB/s. Was disappointed that the gigabit file transfer speed wasn't better, but 22MB/s isn't too bad compared to most other methods. Worked perfectly with Ubuntu (Samba) to XP and Win7 to XP. Did not need to adjust any firewall settings.

  18. hallo

    i try to connect my ubuntu computer to my windows computer using crossover cable. i already followed all your instruction as above. i set my ubuntu computer with ip address and subnetmask using this command on terminal in ubuntu( sudo ifconfig eth0 subnetmask up).then i set my windows computer with ip and as subnetmask. default gateway and DNS server also i also turned off firewall. but then, when i ping the ip address from windows command on my windows computer no communication between these 2 computer. showed minimum= 0ms,maximum= 0ms, average= 0ms.

    please could you help me as im noob in this.

    thank you

  19. I have followed the instructions and the networking is fine. I am using a Windows 7 laptop with a XP PC. The PC is also set up for ICS and I can connect to the internet on the PC. However, I can't connect to internet on laptop. Any idea?


  20. Hey nick I am facing the similar problem. Can anybody help me out?

  21. I want to know that, After setting up both the computers with the crossover cable and configuring them, how can I enable file sharing? I mean, How can I access files of PC-2 on the PC-1? Please elaborate on this.

  22. I tried to connect two computers together using ethernet crossover cable. But computers are running window vista operating system and I assign IP Addresses of same subnet mask to but computers. Both computers are not connected and I tried to ping one computer from another and I received the following error message – PING: transmit failed, error code 1232. What do you think is the problem? thanks in anticipation of your response.

  23. After having plugged the two pc’s by cross cable now i can share files from both the pc’s but in the connectivity status there is written limited connectivity.

    Sir,do you have any solution for it?

  24. khan – if after following the above procedures and still it does not work, then I recommend that you RESTART both laptops.

  25. In one PC, select from Start Menu -> All programs -> Accessories -> Remote Desktop connection, or you can search the program named “mstsc.exe”. Input the IP address of the other PC and press connect.

  26. HI, I connected two laptops following the above procedure. My Ip is and the other system’s IP is We both are able to ping each other and the reply is perfect. The problem is I shared a file, and the other computer is not able to open my ip address using the run command. Even I cannot open my Shared folder by giving in the run (\\ A dialogue box with the message ” \\, The Network Path was not found” opens each time we try this. But I am able to open his shared folder by giving in run command (\\ I closed all the firewall services in my system. But still my system is not able to respond. Also we are not able to use remote desktop connection. Can anyone please help me???

  27. Thank You so MUCH!!! This *really* helped a LOT! :)

Leave a Reply

Your email address will not be published. Required fields are marked *