Ports and Http Status – Reference Junction
1. HTTP (Hypertext Transfer Protocol) - Port 80: The default port used for web browsing and communication between web servers and clients.?
2. HTTPS (HTTP Secure) - Port 443: The default port for secure web browsing using SSL/TLS encryption. It provides a secure connection between web servers and clients.?
3. FTP (File Transfer Protocol) - Port 21: The standard port for transmitting files between a client and a server using the FTP protocol.?
4. FTPS (FTP Secure) - Port 990: A secure version of FTP that uses SSL/TLS encryption for secure file transfer.?
5. SSH (Secure Shell) - Port 22: A cryptographic network protocol used for secure remote login and command execution.?
6. Telnet - Port 23: The default port for unencrypted remote terminal sessions.?
7. SMTP (Simple Mail Transfer Protocol) - Port 25: The standard port for sending email messages between mail servers.?
8. POP3 (Post Office Protocol version 3) - Port 110: The default port for receiving email from a mail server.?
9. IMAP (Internet Message Access Protocol) - Port 143: A protocol used for accessing and retrieving email messages from a mail server.?
10. DNS (Domain Name System) - Port 53: The port used for DNS queries and responses, translating domain names into IP addresses.?
11. DHCP (Dynamic Host Configuration Protocol) - Port 67/68: The port used for dynamically assigning IP addresses to devices on a network.?
12. RDP (Remote Desktop Protocol) - Port 3389: A proprietary protocol used by Microsoft for remote desktop connections.?
13. SIP (Session Initiation Protocol) - Port 5060/5061: A signaling protocol used for initiating, modifying, and terminating real-time sessions involving video, voice, chat, and other multimedia applications.?
14. SNMP (Simple Network Management Protocol) - Port 161/162: A protocol used for managing and monitoring network devices.
15. SSH (Secure Shell) - Port 2222: An alternative port for SSH, often used to avoid common scanning and automated attacks targeting the default SSH port (22).?
16. DNS (Domain Name System) - Port 5353: A commonly used port for Multicast DNS (mDNS) and DNS Service Discovery (DNS-SD) protocols, which enable service discovery on local networks.?
17. NTP (Network Time Protocol) - Port 123: The standard port for synchronizing clocks over a network, ensuring accurate timekeeping on devices.?
18. SMTP Submission - Port 587: An alternate port for SMTP used for email submission by mail clients, typically requiring authentication and encryption.?
19. SNMP Trap - Port 162: A port used for receiving SNMP (Simple Network Management Protocol) trap messages, which are notifications sent by network devices to a central management system.?
20. MySQL - Port 3306: The default port for MySQL database system, commonly used for managing and accessing databases.?
21. PostgreSQL - Port 5432: The default port for the PostgreSQL database system, an open-source relational database management system.?
22. MongoDB - Port 27017: The default port for MongoDB, a popular NoSQL database system, used for document-oriented storage and retrieval.?
23. RDP (Remote Desktop Protocol) - Port 3388: An alternate port for Remote Desktop Protocol (RDP) used for remote desktop connections.?
24. VNC (Virtual Network Computing) - Port 5900: The default port for VNC, a graphical desktop-sharing system that allows remote control of computers.?
25. Git - Port 9418: A port used for the Git protocol, a distributed version control system commonly used for source code management and collaboration.?
26. BitTorrent - Ports 6881-6889: A range of ports commonly associated with BitTorrent file sharing protocol, used for peer-to-peer file transfer.?
27. LDAP (Lightweight Directory Access Protocol) - Port 389: The default port for LDAP, a protocol used for accessing and maintaining distributed directory information services.?
HTTP Status Codes
HTTP status codes are three-digit codes that a server sends to a browser (or other client) to indicate the outcome of its attempt to handle a request. There are five classes of HTTP status codes, each of which begins with a different first digit:?
1. 1xx (Informational): The request was received, and the process is continuing.
2. 2xx (Successful): The request was successfully received, understood, and accepted.
3. 3xx (Redirection): Further action must be taken in order to complete the request.
4. 4xx (Client Error): There was an error in the request, which the client must fix.
5. 5xx (Server Error): The server failed to fulfill a valid request.?
Here are some common HTTP status codes and possible ways to fix them:?
**4xx Client Error**?
- **400 Bad Request**: This error means that the server could not understand the request due to invalid syntax. Check the request for errors and try again.?
- **401 Unauthorized**: This error means the request requires user authentication. Ensure that you're sending the correct authentication details.?
- **403 Forbidden**: The server understood the request, but it refuses to authorize it. This is often because the server does not have the necessary permissions to access the resource.?
- **404 Not Found**: The server cannot find the requested resource. Ensure the URL is correct.?
- **408 Request Timeout**: The server did not receive a complete request from the client within the server's time limit. You can try the request again.?
**5xx Server Error**?
- **500 Internal Server Error**: This error means that the server encountered an unexpected condition that prevented it from fulfilling the request. This error is often on the server side and may require contacting the server administrator or waiting for them to fix the issue.?
- **502 Bad Gateway**: The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request. This could be due to the upstream server being down or having connectivity issues.?
- **503 Service Unavailable**: The server is currently unable to handle the request due to temporary overloading or maintenance of the server. This is often a temporary state and may mean waiting for the server to become available again.?
- **504 Gateway Timeout**: The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server it accessed in attempting to fulfill the request. This could be due to slow network connectivity or the upstream server being overloaded.?
Here is a list of commonly used HTTP status codes:?
1. Informational responses (100-199):
- 100 Continue
- 101 Switching Protocols
- 102 Processing?
2. Successful responses (200-299):
- 200 OK
- 201 Created
- 202 Accepted
- 204 No Content?
3. Redirection messages (300-399):
- 300 Multiple Choices
- 301 Moved Permanently
- 302 Found
- 304 Not Modified?
4. Client error responses (400-499):
- 400 Bad Request
- 401 Unauthorized
- 403 Forbidden
- 404 Not Found
- 405 Method Not Allowed
- 408 Request Timeout?
5. Server error responses (500-599):
- 500 Internal Server Error
- 502 Bad Gateway
- 503 Service Unavailable
- 504 Gateway Timeout