update get user's ipaddress method