Checking if localhost works, or if I must use IP