> ## 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.

# XblMultiplayerManagerLobbySessionSetLocalMemberConnectionAddress

> XblMultiplayerManagerLobbySessionSetLocalMemberConnectionAddress

# XblMultiplayerManagerLobbySessionSetLocalMemberConnectionAddress

Sets the connection address for the local member.

## Syntax

```cpp theme={null}
HRESULT XblMultiplayerManagerLobbySessionSetLocalMemberConnectionAddress(  
         XblUserHandle user,  
         const char* connectionAddress,  
         void* context  
)  
```

### Parameters

*user*   \_In\_\
Type: XblUserHandle

The user you want to set the property for.

*connectionAddress*   \_In\_z\_\
Type: char\*

The network connection address to set.

*context*   \_In\_opt\_\
Type: void\*

Optional. The application-defined data to correlate the [XblMultiplayerEvent](/reference/live/xsapi-c/multiplayer_manager_c/structs/xblmultiplayerevent) to the initiating call.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

This function sets the network connection address of a local member in the lobby session. You can use the connection address for network and secure socket connections to that local member. Changes are batched and written to the service when [XblMultiplayerManagerDoWork](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerdowork) is called. <br />The result of this function is delivered as a multiplayer event with an event type set to `XblMultiplayerEventType::LocalMemberConnectionAddressWriteCompleted`. You can call [XblMultiplayerManagerDoWork](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerdowork) to retrieve multiplayer events.

## Requirements

**Header:** multiplayer\_manager\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[multiplayer\_manager\_c](/reference/live/xsapi-c/multiplayer_manager_c/multiplayer_manager_c_members)\
[XblMultiplayerManagerLobbySessionSetLocalMemberProperties](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerlobbysessionsetlocalmemberproperties)\
[XblMultiplayerEvent](/reference/live/xsapi-c/multiplayer_manager_c/structs/xblmultiplayerevent)


## Related topics

- [XblMultiplayerManagerLobbySessionDeleteLocalMemberProperties](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerlobbysessiondeletelocalmemberproperties.md)
- [XblMultiplayerManagerLobbySessionSetSynchronizedHost](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagerlobbysessionsetsynchronizedhost.md)
- [XblMultiplayerManagerGameSessionSetSynchronizedHost](/reference/live/xsapi-c/multiplayer_manager_c/functions/xblmultiplayermanagergamesessionsetsynchronizedhost.md)
- [Play multiplayer with friends using Multiplayer Manager](/services/xbox-services/multiplayer/mpm/how-to/live-play-multiplayer-with-friends.md)
- [Handle protocol activation with Multiplayer Manager](/services/xbox-services/multiplayer/mpm/how-to/live-handle-protocol-activation.md)
