Using a better way to get the user's ip