Crossover Cable: What It Is, Wiring, and When You Still Need One
A crossover cable looks almost identical to an ordinary Ethernet cable. It has the same RJ45 plugs, the same eight wires, and the same plastic sheath. Inside, though, two pairs of wires are swapped. That small change lets two computers talk directly to each other without a router, switch, or hub in between.
Crossover cables were once essential in every network toolkit. Today, most modern devices can do the same job with a normal cable, thanks to a feature called Auto-MDI/MDIX. So do you still need one? This guide explains what a crossover cable is, how its wiring differs from a straight-through cable, when it still matters, and how to make or buy the right one.
Quick Answer: What Is a Crossover Cable?
A crossover cable is an Ethernet cable wired so that the transmit wires at one end connect to the receive wires at the other end, and vice versa. That lets two similar devices, such as two computers or two switches, communicate directly without a network switch or router. A normal straight-through cable connects transmit to transmit and receive to receive, which only works when one end is a different kind of device, such as a computer to a switch. Modern devices with Auto-MDI/MDIX detect the cable type and adjust automatically, so a crossover cable is rarely needed today, but it is still useful for older hardware, for direct file transfers, and for networking exams.
| Cable type | Wiring | Use it to connect |
|---|---|---|
| Straight-through | Same wiring both ends (T568B to T568B) | Computer to switch, computer to router, switch to router |
| Crossover | Transmit and receive pairs swapped (T568A to T568B) | Computer to computer, switch to switch, router to router |
| Rollover / console | Reversed pin order | Computer to a switch or router console port |
How a Crossover Cable Works
Ethernet devices send data on one pair of wires and receive data on another pair. A computer’s network port transmits on pins 1 and 2, and receives on pins 3 and 6. A switch or router does the opposite: it receives on pins 1 and 2, and transmits on pins 3 and 6. That is why a straight-through cable works between a computer and a switch: the computer’s transmit wires line up with the switch’s receive wires.
Connect two computers with a straight-through cable, and both try to transmit on the same wires and listen on the same wires, so nothing gets through. A crossover cable fixes that by swapping the pairs inside the cable. At one end, the wires that carry the transmit signal are connected to the pins the other computer listens on. The two computers can then send and receive at the same time, just as if a switch were in the middle.
Modern network ports add a clever fix called Auto-MDI/MDIX, short for automatic medium-dependent interface crossover. A port with Auto-MDI/MDIX detects whether the cable is straight-through or crossover, and swaps its transmit and receive pairs in software if needed. Almost every Gigabit Ethernet port, and most Fast Ethernet ports made in the last fifteen years, support it. That is the main reason crossover cables have become rare.
Crossover Cable Wiring: T568A vs T568B
Ethernet cables follow one of two wiring standards, T568A and T568B. The only difference is the order of the green and orange pairs. A straight-through cable uses the same standard at both ends, usually T568B. A crossover cable uses T568A at one end and T568B at the other, which swaps the transmit and receive pairs.
| Pin | T568A | T568B | Function (10/100 Mbps) |
|---|---|---|---|
| 1 | White / Green | White / Orange | Transmit + |
| 2 | Green | Orange | Transmit – |
| 3 | White / Orange | White / Green | Receive + |
| 4 | Blue | Blue | Not used (10/100) |
| 5 | White / Blue | White / Blue | Not used (10/100) |
| 6 | Orange | Green | Receive – |
| 7 | White / Brown | White / Brown | Not used (10/100) |
| 8 | Brown | Brown | Not used (10/100) |
For Gigabit Ethernet, all four pairs carry data in both directions, so the wiring is more forgiving, but the T568A-to-T568B crossover pattern is still the standard definition of a crossover cable. The table above shows the classic 10/100 Mbps wiring, which is what most guides and exams use.
To make a crossover cable yourself, you need an Ethernet cable, two RJ45 plugs, a crimping tool, and a wire stripper. Strip about 2 cm of the outer sheath, untwist the pairs, arrange the wires in T568A order at one end and T568B order at the other, trim them straight, push them into the plugs with the clip facing away from you, and crimp. Test the cable with a cable tester before you rely on it. If you only need one cable, buying a ready-made crossover cable is usually cheaper than buying the tools.

Crossover vs Straight-Through vs Rollover Cable
| Feature | Straight-through | Crossover | Rollover |
|---|---|---|---|
| Ends | Same standard both ends | T568A one end, T568B the other | Pin 1 to pin 8, pin 2 to pin 7, and so on |
| Connects | Different device types | Same device types | Computer to console port |
| Colour | Often blue, grey, or yellow | Often red or yellow, to stand out | Often light blue |
| Still needed? | Yes, the standard Ethernet cable | Rarely, thanks to Auto-MDI/MDIX | Yes, for configuring switches and routers |
Manufacturers often make crossover cables in a different colour, such as red, so you can tell them apart from straight-through cables at a glance. That does not always happen, though, so the only reliable way to tell is to hold the two plugs side by side and compare the wire colours, or to test the cable with a tester. Never assume a cable is a crossover just because it is red.
When Do You Still Need a Crossover Cable?
1. Connecting two old computers directly
If both computers have old 10/100 Mbps network ports without Auto-MDI/MDIX, a straight-through cable will not work between them. A crossover cable lets you transfer files directly, without a router or switch. Set both computers to static IP addresses on the same network, for example 192.168.1.1 and 192.168.1.2, and you can share files or play a local multiplayer game.
2. Connecting two old switches or routers
Older switches and routers that lack Auto-MDI/MDIX need a crossover cable to talk to each other, unless they have a dedicated uplink port. Modern switches handle this automatically, so this use is now rare outside older offices and labs.
3. Networking exams and training
Crossover cables still appear in CompTIA Network+, Cisco CCNA, and similar exams, because they test whether you understand transmit and receive pairs. If you are studying for one of these, learn the T568A and T568B pinouts, and practise making a crossover cable, even if you never use one at work.
4. Troubleshooting a direct connection
When a switch is faulty or you need to rule it out, a direct crossover connection between two devices can prove whether the devices themselves are working. It removes the switch, the router, and the rest of the network from the test.
5. Very old industrial or embedded equipment
Some industrial controllers, printers, and embedded devices still use old network chips without Auto-MDI/MDIX. A crossover cable is sometimes the only way to connect a laptop directly to one of them for configuration.
For most home users, the answer is simpler: you do not need a crossover cable. If you want to connect two modern computers, a normal Ethernet cable will work, because both ports will detect the cable and adjust. If you want the fastest wired connection for gaming, choose a good straight-through cable instead: our guide to the best Ethernet cable for gaming compares Cat6, Cat6a, and Cat7, and explains which one is worth buying.
How to Tell If You Need a Crossover Cable
- Check the age of your devices. If both have Gigabit Ethernet, you almost certainly do not need one.
- Look up the network port specifications. If the manual mentions Auto-MDI/MDIX, a straight-through cable will work.
- Try a straight-through cable first. If the link lights come on and the connection works, you are done.
- If the link lights stay off with a straight-through cable, try a crossover cable, or connect through a switch instead.
- If neither works, check the cable itself, the port, and the IP settings before buying anything else.
The hardware the cable plugs into matters as much as the cable. Our guide to what a network interface card is explains the port on your computer, and our guide to what RJ45 is explains the plug on the end of the cable and how it differs from a phone plug.
Frequently Asked Questions
Can I use a crossover cable to connect a computer to a router?
You can, but you do not need to. A computer and a router are different device types, so a straight-through cable is the normal choice. A crossover cable will also work on most modern routers, because their ports support Auto-MDI/MDIX, but it is not the intended cable for that job.
Is a crossover cable faster than a straight-through cable?
No. Both cables use the same wires and the same category, such as Cat5e or Cat6, so the speed is the same. The only difference is which pins the wires connect to. Speed depends on the cable category, the length, and the devices at each end, not on whether it is a crossover.
Can I turn a straight-through cable into a crossover cable?
Yes, if you have a crimping tool. Cut off one plug, rewire that end to the other standard (T568A if the other end is T568B), and crimp a new plug on. Test it before you use it, because a single wire in the wrong place will stop the cable working.
Do I need a crossover cable for Gigabit Ethernet?
No. Gigabit Ethernet requires Auto-MDI/MDIX, so every Gigabit port can work with either type of cable. A crossover cable will work, but a straight-through cable will work just as well.
What colour is a crossover cable?
There is no standard colour. Many are red or yellow so they stand out, but crossover cables can be any colour. Check the wiring, not the colour, to be sure.
Conclusion
A crossover cable is an Ethernet cable with its transmit and receive pairs swapped, so two similar devices can talk directly without a switch in between. It was once a networking essential, but Auto-MDI/MDIX in modern Gigabit ports has made it largely unnecessary. You still need to know about it for older hardware, for direct file transfers between old computers, and for networking exams. For everyday use, a good straight-through cable is the right choice, and if a direct connection does not work, try a crossover cable or a switch before you blame the devices.