Current location - Loan Platform Complete Network - Local tax - How to get the ip address and port number on the server?
How to get the ip address and port number on the server?
To view the ports in the server, you can use the Netstat command:

1. Click "Start → Run" in turn, enter "cmd" and press enter to open the command prompt window.

2. Type "netstat -a -n" at the command prompt, and then press Enter to view the port number and status of TCP and UDP connections displayed in digital form.

The Netstat command is used as follows:

Command format: netstat-a-e-n-o-s-an.

-a displays all active TCP connections and TCP and UDP ports that the computer listens to.

-e indicates the number of bytes and packets sent and received by Ethernet.

-n indicates that only the addresses and port numbers of all active TCP connections are displayed in digital form.

-o displays the active TCP connections, including the process ID(PID) of each connection.

-s indicates that statistics of various connections, including port numbers, are displayed by protocol.

-View all open ports