Navigation
API > API/Runtime > API/Runtime/Sockets > API/Runtime/Sockets/ISocketSubsystem
Description
Gets the list of addresses associated with the adapters on the local computer. Unlike GetLocalHostAddr, this function does not give preferential treatment to multihome options in results. It's encouraged that users check for multihome before using the results of this function.
| Name | GetLocalAdapterAddresses |
| Type | function |
| Header File | /Engine/Source/Runtime/Sockets/Public/SocketSubsystem.h |
| Include Path | #include "SocketSubsystem.h" |
| Source | /Engine/Source/Runtime/Sockets/Private/SocketSubsystem.cpp |
virtual bool GetLocalAdapterAddresses
(
TArray< TSharedPtr< FInternetAddr > > & OutAddresses
)
true on success, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| OutAddresses | Will hold the address list. |