fixing getting a user's IP address