Quickly Find Used IP Addresses

Posted on January 8, 2009 by Daniel Petri in Networking with

Instead of manually pinging all IP addresses on your LAN you can use this nice command:

Open Command Prompt and type:

The “-n 1” is for only 1 ping packet to be sent to each computer.

Change 192.168.0 to match you own Network ID.

This will ping all IP addresses on the 192.168.0.0 network segment and create a text file called IPADDRESSES.TXT in C:\, where it will list only the IP addresses that gave a reply.

Sponsored

Sponsored
You can also add a -a to the PING command to resolve all the responding IP addresses to HOST names, but doing so will cause the script to take a considerable time to finish:

You can, of course, modify this script and make it suit your own desire.

I’d love to hear about any other ideas you may have .

Register for this Webinar

Real World Solutions with Virtual Reality
Free Whitepaper Download

VR is being utilized for a surprising number of vital business functions today. In this white paper, you’ll get an overview of VR technology and see how it’s a vital part of many industries today.

Download the free whitepaper!