Cleverly solve the tracking problem of IP address under WinXP

  
Sometimes it may be necessary to track the IP address because of work needs or when the computer is attacked. Tracking the IP address is sometimes necessary. If something goes wrong with your network or you need to change some settings, this thing comes in handy. However, many users need to find out which addresses in an address range are not used when they need to solve the DHCP failure of the WinXP operating system. Regarding the tracking of this IP address, the following method is believed to help you.

First open the command prompt window, call the ping command in the For…in…Do loop.
For example, to find out which addresses are not used in the address range 192.168.1.1 to 192.168.1.100, you can use this command: For /L %f in (1,1,100) Do Ping.exe -n 2 192.168. 1.%f
This command will report all IP addresses in the specified range. Whether it is used or not, the user has to look through a large amount of content in the command line window. In fact, we can avoid these troubles, just create a batch file, ask it to return only those unused IP addresses, and then enter the results of the command into a text file. Here's how to do it:
Open Notepad and type the following command in the window:
@Echo off
date /t > IPList.txt
time /t >> IPList.txt< Br>echo =========== >> IPList.txt
For /L %%f in (1,1,100) Do Ping.exe -n 2 192.168.1.%%f Find
"Request timed out." && echo 192.168.1.%%f Timed Out >>
IPList.txt && echo off
cls
Echo Finished!
@Echo on
Notepad.exe IPList.txt
Save this file as IPTracker.bat and close the Notepad program.
It should be noted that in this batch file, the entire For…In…Do command consists of several commands that are linked by “&&". The command begins with "For"; ends with "Off"; and the entire command must be on the same line. Of course, if the user wants to use this method, it must be the user's own IP address to replace the IP address in the example.
Generally speaking, under the WinXP line, you can use the above method to track the IP address. If it is a system such as Win7, there will be a little change, but it is basically the same, as long as you follow the above code to follow the tutorial, usually Can achieve the above effect. If it is a higher-level system than WinXP, the above tutorial can also be used as a good reference to help everyone.

Copyright © Windows knowledge All Rights Reserved