How to query the IP address with the cmd command: First click to start typing [cmd]; then enter the command [ipconfig /all] and press Enter; the last information that appears can be used to query the IP address.
cmd command to query the IP address:
1. Click "Start" in the lower left corner of the system desktop. Then enter "cmd" in the search box.
Note: If it is an XP system, please click "Start" and then "Run", and then enter "cmd" in the window. The other steps are the same!
#2. Enter: ipconfig /all in the pop-up CMD command and press Enter.
3. After that, we will get the information as shown below.
Here, we only need to check the IPv4 address, default gateway and DNS server.
As marked in the figure, the IPv4 address is the IP address of our local machine, and the remaining default network management and DNS servers are also the default network management and DNS addresses of our local machine.
4. Note: Because my machine is connected to a wireless router, the IP address displayed is the IP address in the LAN. If the Internet is connected through dial-up, the IP The address, gateway, and DNS show the IP address, network management, and DNS of China Telecom, China Unicom, and China Mobile.
5. If you want to check the IP address assigned to us by China Telecom, China Unicom or China Railcom, you can search for "IP address" on Baidu to view your own external IP address.
Related learning recommendations:Website production video tutorial
The above is the detailed content of How to query ip address using cmd command. For more information, please follow other related articles on the PHP Chinese website!