Finished script to check ip addresses to see if they are online