Use the command to view your own external IP address

xiaoxiao2021-03-06  19

I often see that some netizens ask how to use the command to know that their IP (in the case of routing), I remember that there should be such a command, or there should be a command to solve this problem! So I spent some time to view the help of Windows and some small articles that I have accumulated before, I finally found the answer. Don't dare to hide, share with you this: use the parametric ping command, specifically: ping -n 1 -r 9 www.163.com: where: N represents the number of packets to send, this parameter is not required But use this parameter (-N 1 means only one packet only) can get the answer fastest; R represents the number of routings recorded (from 1 to 9). Figure 1. If the routing of records is 9 (up to 9) we can't determine your own external network IP, but the top is the closest to our route, continue to use the above command ping, as shown in Figure 2. Because that is my external network, so I don't record routing information! In fact, as long as the number of routes recorded less than 9, the top one should be its own IP. Figure 3. By the way, if your own machine itself has external network IP, it is not necessary to see it. Use: ipconfig / all; use: WiniPCFG.

Transfer from: http://www.contnew.com/tech/sites/other/2005/3/50_848488_01.html

转载请注明原文地址:https://www.9cbs.com/read-47974.html

New Post(0)