You don't use a straight through cable.
You need to swap pins 2 and 3 at one end, 4 and 5 stay straight