return the resolved IP on a cli_connect() call so it can be cached