FGenericPlatformMisc::GetMacAddressString

Retrieve the Mac address of the current adapter as a string.

Windows
MacOS
Linux

Deprecated

  • GetMacAddressString is deprecated. It is not reliable on all platforms

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h

Include

#include "GenericPlatform/GenericPlatformMisc.h"

Source

/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp

Syntax

static FString GetMacAddressString()

Remarks

Retrieve the Mac address of the current adapter as a string.

Returns

String representing the Mac address, or empty string.

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