Skip to content

Conversation

@jeffbowen
Copy link

Fixes #43.

On macOS Sonoma 14.4 and later the airport command line tool no longer works. It was being used to disassociate from any wireless networks, a required step before using ifconfig to change the MAC address. Now the only way to directly disassociate is with Apple's CoreWLAN framework in Swift or Objective-C.

A workaround for this JS-only package, based on multiple comments on #43, is to just turn off the airport device to disassociate from any networks, then turn it back on so we can change the MAC address. The change is able to occur before the airport device reassociates. This should be backwards compatible with older versions of macOS.

Tested on macOS Sequoia 15.3.2 for Wi-Fi (en0). Not currently able to test for wired interfaces (don't have my ethernet adapter on me) but don't see why it wouldn't work.

On macOS Sonoma 14.4 and later the airport command line tool no longer
works. It was being used to disassociate from any wireless networks, a
required step before using `ifconfig` to change the MAC address. Now the
only way to directly disassociate is with Apple's CoreWLAN framework in Swift or
Objective-C.

A workaround for this JS-only package is to just turn off the airport
device to disassociate from any networks, then turn it back on so we can
change the MAC address. The change is able to occur before the airport
device reassociates. This should be backwards compatible with older
versions of macOS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to Change mac on Sonoma 14.4.1

3 participants