The pins are numbered oppositely when looking directly at the connectors. A male has to connect to a female. There are two standard pinout arrangements for the DB-9 connector, DTE and DCE. In most cases a Male will be DTE and a Female will be DCE, but not always. For a basic RS232 connection, you will only need Rx, Tx and Ground.