How to check the port number of a website
Common website ports
The common server software (application) assigned ports are as follows:
FTP: 21
SSH: 22
MYSQL: 3306
DNS: 53
HTTP: 80
POP3: 109
Https: 443
……
Of course, the above can be customized and modified to other port numbers.
1. Ports below 1024 are mostly system ports. For example, port 80 is the default web website access port of the server system. As long as the application does not occupy the port, you can also use port numbers below 1024, but it is recommended not to use port numbers below 1024, especially when using custom port numbers.
2. In theory, port numbers above 1024 can be allocated and used by yourself. For example, you can customize a 2506 port access server for FTP, a 30689 port access server for SSH, etc.
3. In order to ensure the security of the server system, we should reduce the number of open ports. Many useless port numbers are vulnerable to hacker attacks.
[Essential Analysis]
In essence, access to any website is achieved through the combination of the server’s IP (xxx.xxx.xxx) and port number (xx) accessed. Use a: to connect them.
[For example: 119.75.217.109:8080, the complete access is: http://119.75.217.109:8080/. As for the http:// part, if you don’t understand, check the information yourself. 】
【1】, because the IP number of the server is too difficult to remember and unimageable, the so-called "domain name" appeared. The meaning of "domain name" is to represent a certain server IP in the form of a string like xxx.xxx.xx. In essence, they use mapping and binding parsing to process it.
[For example: www.baidu.com (requires special registration and registration, easy to manage, no conflict), when you enter www.baidu.com, it means accessing the server with IP 119.75.217.109. At this time We still don’t know which port we want to access, so let’s talk about ports. 】
【2】, the port is also difficult to remember, which is very annoying. Therefore, for convenience, the port used by the browser to access the website is set to port 80 by default.
It looks like this: http://119.75.217.109:80/
After this rule, everyone uses port 80 as the default. Therefore, all freely accessible websites in the world are basically accessed through port 80 by default.
In this way, since it is already defaulted, why bother writing it out? So, port 80 was directly "omitted". This becomes: http://119.75.217.109/, and finally becomes: http://www.baidu.com/
[3], combining the two points of [1][2], It can be known that when the user enters: www.baidu.com in the browser address bar, the exact process is as follows:
[When ordinary people use it] www.baidu.com =>
[Program processing] http://www.baidu.com/ =>
[Actual access address] http://119.75.217.109:80/
[4], Through the above description, we will easily find that the address looks like this:
http://119.75.217.109:8080/
http://109.105.34.75:2569/admin Addresses such as /
are correct website access addresses.
Note: For a more professional explanation of domain names and ports, please check the relevant information. This is relatively abstract.
This picture shows direct access to Baidu homepage through IP
Extended part
1, a server Many websites with different domain names can be stored on the Internet, and they can all use the same port 80. They are bound and resolved by different domain names to the same server IP address and in different directories
2. Many secondary websites can be stored on one server. Websites with domain names can all use the same port 80. They are bound by different second-level domain names and resolved to different directories of the same server IP address.
For more technical articles related to frequently asked questions, please visit Learn in the FAQ column!
The above is the detailed content of How to check the port number of a website. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



If you want to check some relevant information in Steam or share some website links with friends, how do you do it? Can I enter a URL into steam? Of course it is possible. Below I will teach you how to open a URL in Steam. Specific methods: 1. First, we open steam. 2. Click the Settings option. 3. Then switch to the interface tab. 4. Check Show address bar. 5. Then enter the URL in the address bar to use the browser.

PHP URL detection refers to using the PHP programming language to verify whether the input string conforms to the format of the URL. Methods to detect URLs: 1. Use regular expressions for URL verification. You can use the "preg_match" function to perform regular matching, if the URL matches the pattern; 2. Use built-in functions for URL verification, use the "filter_var" function and "FILTER_VALIDATE_URL" ” filter to verify.

Common UDP port numbers are 53, 69, 161, 2049, 68, and 520. UDP uses port numbers to reserve their own data transmission channels for different applications: 1. Network File System (NFS), the port number is 2049; 2. Simple Network Management Protocol (SNMP), the port number is 161; 3. Domain Name System (DNS) , the port number is 53; 4. Simple File Transfer System (TFTP), the port number is 69; 5. Dynamic Host Configuration Protocol (DHCP), the port number is 68; 6. Routing Information Protocol, the port number is 520, etc.

The port numbers for the DHCP service are 68 and 67. dhcp is a LAN network protocol. It is usually used in large-scale LAN environments. Its main function is to centrally manage and allocate IP addresses and improve address usage. The DHCP protocol uses UDP as the transmission protocol. The host sends a request message to port 68 of the DHCP server, and the DHCP server responds with a response message to port 67 of the host. These two ports are normal DHCP service ports, which can be understood as one sending and one take over.

Commonly used PHP port numbers include HTTP port number (80), HTTPS port number (443), FTP port number (21), SMTP port number (25), POP3 port number (110), IMAP port number (143), etc. Detailed introduction: 1. HTTP port number (80). Through the HTTP port number, the PHP application can receive and process HTTP requests from the client; 2. HTTPS port number (443). The PHP application can communicate with the client through the HTTPS port number. Establish secure connections and more.

Teach you how to use PHP to remove the suffix of the URL path. In website development, you often encounter the need to remove the suffix of the URL path to achieve a more beautiful and standardized URL. Today we will learn how to use PHP to remove the suffix of the URL path, let us explore this issue together. First, we need to clarify what effect we want to achieve. Usually, the URL path suffix refers to the file extension in the URL, such as .php, .html, etc. Our goal is to automatically go to the URL when the user accesses the URL with the suffix

The default port number of mysql is 3306. It is an open source relational database management system that is often used for data storage and management of websites and applications. If you need to change the port number of mysql, you can do it by editing the mysql configuration file. After editing , you need to restart the mysql service for the changes to take effect, and specify the new port number when connecting to mysql.

New users download and win blind boxes up to 60,000 yuan. The official website of OK Exchange is a website with one of the largest accounts among virtual currency exchanges. Its rich trading modes and multiple digital asset types allow you to enjoy different trading experiences. If you need it, you can click on the OK exchange URL at the top of the page to enter and download. AndroidOKX6.4.0 has been released to the official website (update time: 2023.3.4) Trading: – Commission aggregation of all order types – K-line buying and selling points 2nd period – Contract DCA – Copying Square online search function Web3: – Import wallet list to increase address display – gasPrice multiple adjustment – Gas gas station supports Tron chain – Farm increases Pool income Fin