MyMisPal
← Networking & security lessons
Lesson 8 of 12

Protocols and ports

An IP address gets you to the device, but the device runs many services. A port is the door number inside it. Like a building: the IP is the building number and the port is the flat.

PortProtocolUsed for
443HTTPSEncrypted websites. Today's most important port.
80HTTPUnencrypted websites.
53DNSTurning names into addresses.
22SSHSecure remote server administration.
25 / 587SMTPSending email.
3389RDPWindows remote desktop.
3306MySQLThe MySQL database from the SQL course.
67 / 68DHCPHanding out addresses.

Some old protocols send everything in plain text, so anyone listening on the network can read passwords. Each has an encrypted replacement:

InsecureSecure replacementWhy
HTTP · 80HTTPS · 443TLS encrypts the page and login details.
Telnet · 23SSH · 22Telnet sends the password in plain text.
FTP · 21SFTP · 22Encrypted file transfer.
Watch outGolden firewall rule: open only what you need. Nakhla's ERP server needs 443 for users and never needs 3306 open to the internet: the database should only be reachable by the app from inside the network.
Spotted a mistake on this page, or have an idea to improve the site?