IP of Network - Yash-777/LearnJava GitHub Wiki

Check These links:


Loop repeats 1 time with time out as 5.

C:\Users\Tharun Kumar>for /l %a in (1,1,1) do ( ipconfig | findstr "IPv" && timeout /t 5)

C:\Users\Tharun Kumar>(ipconfig   | findstr "IPv"   && timeout /t 5 )
   IPv6 Address. . . . . . . . . . . : 2409:4070:238f:be45:25dd:1fd0:423d:f5c
   Temporary IPv6 Address. . . . . . : 2409:4070:238f:be45:6cf0:c1d6:b954:d932
   Link-local IPv6 Address . . . . . : fe80::25dd:1fd0:423d:f5c%10
   IPv4 Address. . . . . . . . . . . : 192.168.225.31

Waiting for 0 seconds, press a key to continue ...

Loop repeats 100 time with time out as 600.

C:\Users\Tharun Kumar>for /l %a in (1,1,100) do ( ipconfig | findstr "IPv" && timeout /t 600)

C:\Users\Tharun Kumar>(ipconfig   | findstr "IPv"   && timeout /t 600 )
   IPv6 Address. . . . . . . . . . . : 2409:4070:238f:be45:25dd:1fd0:423d:f5c
   Temporary IPv6 Address. . . . . . : 2409:4070:238f:be45:6cf0:c1d6:b954:d932
   Link-local IPv6 Address . . . . . : fe80::25dd:1fd0:423d:f5c%10
   IPv4 Address. . . . . . . . . . . : 192.168.225.31

Waiting for  32 seconds, press a key to continue ...