Typical MIDI connections are male on both ends, though there are female-female connectors that allow for daisy changing.
MIDI hardware tends to be equipped with 5-pin MIDI ports (female jacks).
The THRU
port on MIDI hardware immediately relays all data received at IN port facilitating device "daisy-changing" for simultaneous use.
Connector pin numbering: