I often see some netizens asking how to use commands to learn their IP addresses (in the case of Routing). I remember such commands, or there should be commands to solve this problem! So I spent some time checking Windows's help and some of my previous experience.ArticleAnd finally found the answer. I am not afraid to hide this secret. Here I will share with you:
The Ping Command with parameters is as follows:
Ping-N 1-r 9 www.163.com:
Where: N indicates the number of data packets to be sent. This parameter is not required, but you can get the fastest answer by using this parameter (-N 1 indicates only one data packet is sent; r indicates the number of recorded routes (from 1 to 9)
If the number of recorded routes is 9 (up to 9) at this time, we cannot determine our own Internet IP address, but the top is the route closest to us, continue to ping this address using the above command,
Because it is my internet, no route information is recorded!
In fact, as long as the number of recorded routes is less than 9, the top one should be its own IP address.
By the way, if your machine has an Internet IP address, you do not have to worry about it:
Use ipconfig/All In 2000/XP;
Use winipcfg in 9X.
Transferred from:
Http://www.contnew.com/tech/sites/other/2005/3/50_848488_01.html