DB25 Male to RJ45 Adapter Gray 24D-301
This unit 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 line to do so. It will cut down on signal loss and interference.