get ip from remoteAddress to use in ip locator