A computer port is a hardware piece on a computer where an electrical connector can be plugged to link the device to external devices, such as another computer, a peripheral device or network equipment.
Examples of computer connector sockets on various laptops
Ports on the back of the Apple Mac Mini (2005)
Mini DisplayPort
DisplayPort cable
Components of an electrical circuit are electrically connected if an electric current can run between them through an electrical conductor. An electrical connector is an electromechanical device used to create an electrical connection between parts of an electrical circuit, or between different electrical circuits, thereby joining them into a larger circuit.
This rear panel of an integrated amplifier features a variety of electrical connectors
Connectors on the back of a 2018 computer
NMEA 2000 cabling using M12 connectors
A 4-pin Mini-DIN S-Video cable, with notches and a rectangular alignment pin