Demystifying TCP Ports

2025-06-12 Visits:

Do not understand the slogan, but also dare to write in the resume proficient in TCP protocol?

Hey! Brothers!

 

When the resume says "proficient in TCP / IP," I always ask him: what is the port?

 

Every time I saw a CV saying "familiar with network protocols," I would throw out a soul-searching question: "Why doesn't the URL show up in the URL when the browser enters the URL? " Network engineers who can fully explain port mechanisms are rarer than pandas.

 

For more information, please scan the WhatsApp QR code below to contact customer service.

 

图片.png 

 

图片.pngThe port's status as a quagmire 01

In the programmer's world, these numbers are like a code:

· 3306 = Connection location for MySQL Digital Library

· 6379 = Redis Cache's Nest

· 8080 = default position for Tomcat

· 22 = Encrypted channel for SSH

But the real king will always be the golden pair of 80 and 443.

 

access https://www.baidu.com/ The browser slipped in port 443, just as a secret agent always uses a code.

图片.png 


图片.pngThe Unspoken Rule of Ignoring Ports 02

You think you can access a website without passing a port number?Too youngThe protocol already helped you with the choice question:

· HTTP Protocol → Auto Match Port 80

· HTTPS Protocol → Default Recognition of Port 443

If you use the Chrome Developer Kit, you'll see that the browser automatically fills in the port numbers like a secret agent.


图片.pngPort: The number of a door in the Internet world 03

Imagine you're sending a courier to an overseas Internet user:

· The IP address is the recipient's city

· The tagline is GPS coordinates down to the room number.

Without a port is like writing only "Mr. Wang of Beijing," and the delivery boy can only doubt life at the Forbidden City gate with the package in his arms. The Nginx, MySQL, Redis and other processes on the server all rely on the slogan to find their own quick delivery package.


图片.pngThe Love Story of Protocols and Ports 04

This is the CP fetter than you think:

· TCP80 port: HTTP

· UDP53 port: DNS

· Full dual-service 443 port: HTTPS

Interestingly, the TCP and UDP ports are like parallel world twins - Room 80 has two completely different tenants, HTTP (TCP layer) and QUIC (UDP layer).

 

图片.pngDeath guide for changing port numbers 05

While you can theoretically set up ports at will, the consequences of messing up are magical:

· Change MySQL to Port 80 → Your Digital Library Suddenly Starts to Receive Internet Users

· Redis Switches to Port 443 → Hackers Think They Have Found Cryptographic Treasure

· Web services with 6666 port → user access to the first jump God

 

For more TCP resources, follow the Facebook account & youtube account: Thinkmo Dumps

Leave Your Message