Added range_check to check if a IP is in a network range