Too many network addresses and port numbers? This quick reference table can help
When learning about networking, writing code, doing packet capture, and checking configurations, all kinds of IP addresses, MAC addresses, port numbers, private addresses, and protocol ports all look similar, but I was confused every time I used them.
Today, Shenchang has prepared an address + port quick lookup table that programmers and Internet users can understand, so you don’t have to search Baidu anymore!
1. Common network address types
2. Port number distribution quick reference table
We often need to use ports when writing code and deploying services, for example:
Tomcat 8080
MySQL 3306
SSH 22
DNS 53
But these connection ports are classified, you can understand by looking at the following table:
3. Common protocol default port number comparison table
4. Port conflict problem
When starting a project, Shenchang often encounters the error "Port occupied".
Common port conflict scenarios:
Tomcat is running locally and occupies 8080
Spring Boot defaults to 8080, and there is a conflict when you start the second project
Database port 3306 is conflicted by Docker mapping
Quick troubleshooting instructions: