You can imagine Ports as doors in a house and those doors act as a gateway for specific data to enter and leave. Now each Program has its each "door" which is the unique port of that program, which allows to be able to comunicate properly accross the network. Keeping with the door analogy, what TCP does is that it assures the data to make sure it reaches the correct door (port). UDP is connectionless and focuses on speed rather than reliability. Combined These ports allow multiple services to share a single network connection efficiently
| Protocol | Puerto(s) | Transport |
|---|---|---|
| HTTP | 80 | TCP |
| HTTPS | 443 | TCP |
| SMTP | 25 | TCP |
| POP3 | 110/995 | TCP |
| IMAP | 143/993 | TCP |
| MIME | ? | ? |
| FTPS | 989/990 | TCP |
| SFTP | 22 | TCP |
| BitTorrent | 6881-6889 | TCP/UDP |
| FastTrack | ? | TCP/UDP |
| IRC | 6665-6669 | TCP |
| XMPP | 5222/5269 | TCP |
| MTProto | 80/443/5222 | TCP |