Use this null modem DB9 to DB9 adapter and gender changer to switch the transmit and receive lines in an RS232 serial cable. Available in female to female (gender changing) or female to male (keeps cable gender.)
Works the same as a null modem cable.