Check the port status of Linux
The "IP address" is used to identify which computer on the network you are connecting to, and the "port number" is needed to identify which program running on that computer you are accessing.
The port number is a 16-bit integer and ranges from 0 to 65535.
To check which ports are waiting for a connection in Linux, use the ss command or netstat command.
●well-known ports
Port numbers (0-1023) are reserved in advance for well-known services and protocols used in TCP (Transmission Control Protocol) and UDP (User Datagram Protocol).