Retrieving ip address