How to view the computer port number

Source: Internet
Author: User
Tags port number

First, open the Run Command box, XP, Win7, Win10 system can be found directly in the Start menu, you can also use the Win + R combination shortcut keys to quickly open (Win8 preferred method). When you open the Run Command box, open the following command: After CMD completes, press ENTER or click "OK" at the bottom to open, as shown in the following illustration.

Two. After running the cmd command, you can open the computer administrator's cmd command Operation box. To see the computer port is simple, just run a command.

View the computer port number command: Netstat-na (for specific use, in the cmd command box, type Netstat-na, and then press ENTER to run), as shown in the following figure.

The listening in the port state represents the current listening state, established represents a connection, is in a communication state, time_wait represents an end visit, and close_wait represents a pending connection interrupt request from a local user.

The computer port can be divided into three main categories: the accepted port (well known Ports), the registration port (registered Ports), and the dynamic and/or private port (active and/or private Ports).

Accepted ports: from 0 to 1023, they are tightly bound to some services. Usually the communication of these ports clearly indicates the protocol of some kind of service. For example: 80 ports are actually always HTTP communication, etc.;

Registration port: from 1024 to 49151. They are loosely bound to some services. This means that there are many services that are bound to these ports and are used for many other purposes. For example, many systems handle dynamic ports starting at around 1024.

Dynamic/or Private ports: from 49152 to 65535. In theory, these ports should not be assigned to services. In fact, machines typically allocate dynamic ports from 1024. But there are exceptions: Sun's RPC port starts at 32768.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.