Skip to content

This script checks the availability of IP addresses in a specific network by pinging them and printing whether they are in use or not.

License

Notifications You must be signed in to change notification settings

prosaugat/IP-Availability-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

IP-Availability-Checker

This script defines the network range as 192.168.12, and then uses a for loop to iterate through all possible IP addresses in that range. For each IP address, it pings the address and checks the return code. If the return code is 0, it means the IP address is in use and it will print the IP address is in use. If the return code is not 0, it means the IP address is not in use and it will print the IP address is not in use. You can modify this script to match your specific network range by changing the value of the network variable.

Note that this script uses the ping command which is not available on all systems. If ping is not present you can use nc command to check the reachability of the IP.

About

This script checks the availability of IP addresses in a specific network by pinging them and printing whether they are in use or not.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages