> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XtfGetSavedConsoleAddress

> XtfGetSavedConsoleAddress

# XtfGetSavedConsoleAddress

Gets the Tools IP address of the default console for XBOX Tools Framework (XTF) apps.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
HRESULT XtfGetSavedConsoleAddress(
         BSTR* savedAddress
)  
```

<a id="parametersSection" />

### Parameters

*savedAddress*<br />Type: BSTR\*

\[in] A pointer to the address of the default console for XTF apps.

<a id="retvalSection" />

### Return value

Type: HRESULT

Returns `S_OK` if successful; otherwise, returns an HRESULT error code.

<a id="remarksSection" />

## Remarks

This function gets the Tools IP address from the development console identified by the [IXtfConsoleManager::SetDefaultConsole](/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/setdefaultconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m) method as the default console for XBOX Tools Framework (XTF) apps. `XtfGetSavedConsoleAddress` is a utility function that gets the value of the `bstrAddress` member from the [XTFCONSOLEDATA](/reference/tools/xtf/xtfconsolemanager/structures/xtfconsoledata-xtfconsolemanager-xbox-microsoft-t) structure returned by the [IXtfConsoleManager::GetDefaultConsole method](/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/getdefaultconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m) of the console manager. For more information about the console manager, see [IXtfConsoleManager Interface](/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t).

<a id="requirementsSection" />

## Requirements

**Header:** xtfutils.h

**Library:** XtfApi.lib

**Supported platforms:** Windows (for XBOX console tools)

## See also

[Run from PC Deployment (NDA topic)](/home/setup-install/concepts/deployment)<br />[XTF Transport Errors (NDA topic)](/tools/tools-console/commandlinetools/xtf-transport-errors)<br />[Additional Xtf APIs](/reference/tools/xtf/xtfapi/atoc-xtfapi)
