ISocketSubsystem::GetLocalHostAddr

Uses the platform specific look up to determine the host address

Windows
MacOS
Linux

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 TSharedRef< FInternetAddr > GetLocalHostAddr
(
    FOutputDevice & Out,
    bool & bCanBindAll
)

Remarks

Uses the platform specific look up to determine the host address

To better support multiple network interfaces and remove ambiguity between address protocols, it is encouraged to use GetLocalAdapterAddresses to determine machine addresses. Be sure to check GetMultihomeAddress ahead of time.

Returns

The local host address

Parameters

Parameter

Description

Out

the output device to log messages to

bCanBindAll

true if all can be bound (no primarynet), false otherwise

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss