Home>Article> How to query ip address using cmd command

How to query ip address using cmd command

coldplay.xixi
coldplay.xixi Original
2020-10-27 16:42:42 62129browse

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.

How to query ip address using cmd command

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!

How to query ip address using cmd command

#2. Enter: ipconfig /all in the pop-up CMD command and press Enter.

How to query ip address using cmd command

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.

How to query ip address using cmd command

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.

How to query ip address using cmd command

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Are floppy disks hardware? Next article:Are floppy disks hardware?