FGenericPlatformMisc::GetMacAddress

Retrieve the Mac address of the current adapter.

Windows
MacOS
Linux

Deprecated

  • GetMacAddress 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 TArray< uint8 > GetMacAddress()

Remarks

Retrieve the Mac address of the current adapter.

Returns

array of bytes representing the Mac address, or empty array if unable to determine.

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