Windows CMD Command to Display All IP Addresses

for /L %i in (0,1,255) do ping -n 1 -w 250 192.168.1.%i>>ipaddress.txt

The above scans all the IP address on the subnet 192.168.1.XXX and saves them to a file named ipaddress.txt.

Thanks to Clifford on the thread here for pulling this together.

I often remote desktop into my mining PC. However my ATT router is spotty at best so there are times I failover to a backup network which renews my PCs IP address according to its DHCP.

This command helps me to find the miner on the network and RDP into it.