Add error handling if we fail to get IP address