It could take some time to test all the addresses...
Can't you just let the user input the IP he/she wants for the system?