For Serial and Parallel ports
The serial loopback plug is a 9 pin female plug (DE-9)
In addition to testing the receive and transmit functions, the following RS232 signal pins are also tested:
More information and pin out instructions here
The parallel loopback plug is a 25 pin male plug (DB-25).
The parallel port is also commonly known as a printer port.