Some serial ports use a 25-contact D-sub, but with few exceptions, a 25-pin serial D-sub on a PC is male, with the female connector on the cable—the reverse of the parallel-port convention. (Other serial ports use 9-pin D-subs instead.)
Source: wiktionary