If your computer is equipped with a 25-pin COM port and you have a cable from a device with a 9-pin connector for the COM port, you can use this small adapter to solve the problem. Plug the adapter into the port to convert it directly to a 9-pin COM port.
Sandberg Adapter COM 9M-25F. Gender: Male/Female, Connector(s): 9M-25F. Package width: 0.335" (8.5 mm), Package depth: 0.0787" (2 mm), Package height: 0.492" (12.5 mm)