<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreWLAN",
  "identifier" : "/documentation/CoreWLAN/CWInterface/hardwareAddress()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core WLAN"
    ],
    "preciseIdentifier" : "c:objc(cs)CWInterface(im)hardwareAddress"
  },
  "title" : "hardwareAddress()"
}
-->

# hardwareAddress()

The hardware media access control (MAC) address for the interface, returned as a UTF-8 string.

```
func hardwareAddress() -> String?
```

## Discussion

The standard format for printing a MAC-48 address <00:00:00:00:00:00> is used to represent the MAC address as a string. Returns *nil* in the case of an error.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)