add testing when running on localhost or IP address