Check printer specifications.
Different printer models come with
different cable interface options.

CABLE CONNECTION REFERENCE GUIDE
Computer
A typical computer, as seen from the back.


PARALLEL
Parallel
The parallel port on a PC is always 25-pin female.


SERIAL
Serial
Serial ports on a PC are always male, and have 9 or 25 pins. Though the pinouts of the serial port on a PC are always the same, the pinouts for the serial port on a printer are not always predictable. Many times, a "null modem" cable is all that's needed.


USB
USB
USB is faster than serial or standard parallel communications.