what are ports used for on computers?
For physical ports, see Computer port (hardware). In the internet protocol suite, a port is an endpoint of communication in an operating system. While the term is also used for hardware devices, in software it is a logical construct that identifies a specific process or a type of network service.