JusticeTech System
前往频道在 Telegram
Learn to learn before you teach
显示更多未指定国家未指定类别
227
订阅者
无数据24 小时
无数据7 天
无数据30 天
帖子存档
What Is an Open Port?
Imagine your house which has some doors Locked and some Opened
An open port means a service is listening for incoming connections.
For example:
Port 80
If a web server is running, Port 80 is open so browsers can connect.
If nothing is using Port 80, it stays closed.
Can Two Apps Use the Same Port?
Usually no because imagine two shops trying to use the exact same shop number in a mall, it would cause confusion.
Similarly, if another application is already using a port, a second application usually can't use that same port in the same way at the same time.
This particular table took my time
All for the sake of impacting knowledge
It's all good
Let's go
Common Port Numbers
Here are some well-known ports:
Port Service What It Does
20 & 21 FTP File transfer
22 SSH Secure remote login
25 SMTP Sending email
53 DNS Converts DN to IP addresses
80 HTTP Normal websites
110 POP3 Receiving email
143 IMAP Email synchronization
443 HTTPS Secure websites
3306 MYSQL Database server
5432 POSTGRESQL Database server
6379 REDIS In-memory data storage
Another practical example for those who are still in school
Imagine a school that school has one gate, and many students enter through that gate.
After entering, they go to:
SS1
SS2
SS3
JSS1
JSS2
Now take:
The school gate is like the IP address.
The classrooms are like ports.
The students are like internet data.
Why Are Ports Needed?
Without ports, imagine this situation:
Someone sends you a whatsApp message, Email, YouTube video, Telegram file etch
Your phone receives all the data but it has no idea where to send each one, that would create complete confusion.
Ports organize internet traffic.
Many developers are stuck-out because they never sat down and ask themselves basic questions, listen inspiration alone won't take you far in this space
You heard that here first
Or what is the essence of port
You see as developers before you engage on any project if you don't ask yourself some little questions you'd likely fail on those projects
Think of ports as different doors.
Internet
▼
Phone (One IP Address)
Port 80 >> Chrome
Port 443 >> YouTube
Port 5222 >> WhatsApp
Port 443 >> Telegram
The operating system checks the port and sends the data to the correct application.
For instance Zisky is watching "Best python library for WhatsApp bot" on YouTube and Ayo sends zisky a WhatsApp message at thesame time
Everything reaches your phone through one internet connection.
How does your phone know where each piece of data belongs?
The answer is by using port numbers.
Your phone may have these apps open at the same time:
WhatsApp
Chrome
Telegram
Spotify
YouTube
All these apps use the same internet connection, now when information comes from the internet, your phone must know which app should receive this data
Ports solve this problem.
