port

A number from 1 to 65535 that picks out one service on a machine, such as 22 for SSH or 80 for plain web traffic.

In more detail

An address finds the machine; a port finds the program on it. Well-known services have default ports, such as 22 for SSH, 80 for plain web traffic and 443 for encrypted web traffic.

Examples

ansible_port=2222 on a host line tells Ansible that host's SSH server listens on a non-default port.
http_port is a typical group variable that differs between web servers and other hosts.
In the APIs course: The APIs course service listens on port 8765, which is why every request goes to localhost:8765.
In AWS: A number from 1 to 65535 that picks out one service on a machine, such as 8000 for the course service.
Kafka clients connect on 9092; Redpanda brokers talk to each other on 33145.
A twelve-factor app binds the port the platform gives it, read from config with no default, so two copies on one host never fight over a hard-coded number.
Target{Name: "api", Port: 8080}
MockMvc tests controllers without opening any real port.
An IP address finds the machine; a port finds the program on it. TCP and UDP ports are separate, so port 53 over UDP and port 53 over TCP can be different sockets. Well-known services have standard ports: 22 for SSH, 53 for DNS, 443 for HTTPS.
9090 Prometheus, 8000 the course service, 4317 OTLP over gRPC, 4318 OTLP over HTTP, 8888 collector metrics.
The course's local CGI server listens on port 8080.
A scan shows one source touching many ports; a validator compares listening ports with a baseline.

Related terms

Taught in

References

Certification courses