🚪 Common Networking Ports & Protocols

📌 Overview

A Port is a logical communication endpoint that identifies a specific process or service on a computer.


🔢 Port Categories

RangeNameDescriptionExample
0 - 1023Well-Known PortsReserved for core system services.HTTP (80), SSH (22)
1024 - 49151Registered PortsUsed by user applications & vendor services.SQL (1433), RDP (3389)
49152 - 65535Dynamic PortsTemporary ports for client-side outgoing connections.Browser tabs

📜 Detailed Port Guide

1. File Transfer & Remote Access

PortProtocolNameDescriptionAzure Context
20/21TCPFTPFile Transfer Protocol. Unencrypted.Used for older App Service uploads. Avoid if possible (Use SFTP).
22TCPSSHSecure Shell. Encrypted Command Line.Critical for managing Linux VMs.
23TCPTelnetUnencrypted Remote CLI.Blocked/Avoid. Never use in Cloud.
3389TCPRDPRemote Desktop Protocol. GUI Access.Critical for managing Windows VMs.

2. Web & Email

PortProtocolNameDescriptionAzure Context
80TCPHTTPUnsecured Web Traffic.Standard web hosting.
443TCPHTTPSSecured (SSL/TLS) Web Traffic.Mandatory for secure Azure Web Apps.
25TCPSMTPSimple Mail Transfer Protocol.Sending email. Blocked by default in Azure to prevent spam.
110TCPPOP3Post Office Protocol v3.Receiving email (Downloads locally).
143TCPIMAPInternet Message Access Protocol.Receiving email (Synced on server).

3. Infrastructure & Database

PortProtocolNameDescriptionAzure Context
53UDP/TCPDNSDomain Name System.Resolves names to IPs. Azure DNS uses this.
67/68UDPDHCPAuto-assigns IP addresses.Managed automatically by Azure VNet.
1433TCPSQLMSSQL Server Default Port.Connecting to Azure SQL Database.
3306TCPMySQLMySQL Database Port.Connecting to Azure Database for MySQL.
5432TCPPostgreSQLPostgreSQL Database Port.Connecting to Azure Database for PostgreSQL.

🖼️ Architecture Diagram (The "Apartment" Analogy)

       [  Server IP: 10.0.0.5  ]
      +-------------------------+
      |                         |
      |   [ Port 80 ]  <-- (Building Entry for Web Requests)
      |       |
      |   (Web Server App)      |
      |                         |
      |-------------------------|
      |                         |
      |   [ Port 22 ]  <-- (Service Entry for Admin/Maintenance)
      |       |
      |   (SSH Service)         |
      |                         |
      +-------------------------+

💡 Hinglish Explanation (Office Building)

1. Port (Cabin Number)

2. Open vs Closed Ports


⚡ Exam Tips for AZ-900

  1. NSG Rules: You must explicitly Allow ports in Network Security Groups (NSGs) for traffic to flow.
    • Example: To host a website, allow Port 80/443.
    • Example: To admin a VM, allow Port 22 (Linux) or 3389 (Windows).
  2. Security: Keep management ports (22, 3389) closed to the public internet using JIT (Just-In-Time) Access or Bastion.
  3. SMB (Port 445): Used for Azure Files storage mounting. often blocked by ISPs.