Loading Depth Study
Preparing your workspace
A network port identifies a specific service or endpoint on a host so multiple services can use the same network address.
A machine can run many network services at once. The IP address identifies the host, while the port identifies a service on that host. HTTP and HTTPS are commonly associated with standard ports, while development applications often use custom ports. A client uses the appropriate port to connect to the service it needs.
A development computer might run a frontend server on one port, an API server on another, and a database on another.
localhost:3000 → Web Application localhost:4000 → API Server localhost:5432 → PostgreSQL
Different services can listen on different ports of the same machine.