Port
A port is a number that identifies one service on a machine, so that one IP address can serve many programs at once.
A port is a number from 0 to 65535 that, together with an IP address, names one end of a network connection. The address finds the machine, and the port finds the program on it. A program that serves requests listens on a port, and clients connect to that port. Well-known services use fixed ports, such as 443 for HTTPS and 22 for SSH.
Ports let many services share one address without mixing up their traffic. A web server, a database and an SSH server can all run on one machine, each on its own port. Firewalls use ports to decide which services are reachable from outside. A port that is open but not needed is a common way into a system.
A program in a sandbox listens on a port, such as a web app on port 3000. The sandbox's port is not reachable from the internet by default. The platform exposes chosen ports through ingress, often as a preview URL that routes to that port. Only the ports that need to be reached are exposed, which keeps the rest of the sandbox private.