Navigation
API > API/Runtime > API/Runtime/Sockets > API/Runtime/Sockets/ISocketSubsystem
Description
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.
| Name | GetLocalHostAddr |
| 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 TSharedRef< FInternetAddr > GetLocalHostAddr
(
FOutputDevice & Out,
bool & bCanBindAll
)
The local host address
Parameters
| Name | Remarks |
|---|---|
| Out | the output device to log messages to |
| bCanBindAll | true if all can be bound (no primarynet), false otherwise |