ISocketSubsystem::GetLocalAdapterAddresses

Gets the list of addresses associated with the adapters on the local computer.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

ISocketSubsystem::GetLocalAdapterAddresses()

FSteamSocketsSubsystem::GetLocalAdapterAddresses()

References

Module

Sockets

Header

/Engine/Source/Runtime/Sockets/Public/SocketSubsystem.h

Include

#include "SocketSubsystem.h"

Source

/Engine/Source/Runtime/Sockets/Private/SocketSubsystem.cpp

Syntax

virtual bool GetLocalAdapterAddresses
(
    TArray< TSharedPtr< FInternetAddr >> & OutAddresses
)

Remarks

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.

Returns

true on success, false otherwise.

Parameters

Parameter

Description

OutAddresses

Will hold the address list.