You can find the pinout for a null modem cable
here. Basically, all the pins dealing with transmitting on one side are the pins dealing with receiving on the other side (i.e. The Tx and Rx pins are crossed), allowing the ports to talk to each other.