Connect to a web server with HTTPS without specifying a port in the URL.
The server listens on its standard port.
Which destination port is used?
HTTPS uses TCP port 443 by default, while unencrypted HTTP uses TCP port 80.
Detailed explanation
Incorrect. 22/tcp is SSH.
Incorrect. 22/tcp is SSH.
Incorrect. 53 is DNS.
Incorrect. 53 is DNS.
Incorrect. 80/tcp is unencrypted HTTP.
Incorrect. 80/tcp is unencrypted HTTP.
Correct. TCP port 443 is standard HTTPS.
Correct. TCP port 443 is standard HTTPS.
Try it yourself
An example you can run in a temporary verification environment.
getent services https | sed -n '1p'Expected result
https 443/tcpを示すサービスデータベース行Key points
- HTTPS is 443/tcp
- HTTP is 80/tcp
- A URL can override the port
Notes
- Environment: Linux NSS servicesデータベース / 外部通信なし
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.