get correct IP address for user access