1. First, open the computer, open the running interface in the computer, and enter cmd in the input box of the running interface.
2. Then enter ipconfig in the pop-up interface and press Enter on the keyboard to view the IP address, subcode mask and gateway information of the computer.
3. Then enter ipconfig/all in the interface and press enter, and you can see the IP address, subcode mask, gateway information and MAC address of the computer.
4. Finally, enter netstat -ano in the interface and press Enter to view the local port.