This modular adapter allows you to configure your own specific pinouts. When trying to run a serial connection over a very long distance, it is better to use an Ethernet cable to do so. It will cut down on signal loss and interference.
The picture shows a female DB9 connector, but this version will create a male DB9.