capture IP address as string