1. Turn on the computer and press the Windows key +R key on the keyboard to open the command prompt window, as shown in the following figure:
2. Then enter ipconfig at the command line, and then press Enter on the keyboard to confirm, and you can view the IP address, as shown below:
3. Then enter netstat -an, press enter to confirm, and you can view the port number, as shown below: