Valid hardware port name for built-in on board Wi-Fi in macOS Big Sur

In the context of networksetup, what's the valid hardware port name of my Mac's built in on board Wifi?

I'm running macOS Big Sur version 11.7.10 on a (Retina, 15-inch, Mid 2014) MacBook Pro.



When I type


networksetup -createnetworkservice Wi-Fi Wi-Fi


my Macbook responds with


Wi-Fi is not a valid hardware port name.
** Error: The parameters were not valid.




[Re-Titled by Moderator]


Earlier Mac models

Posted on Feb 13, 2025 7:23 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 17, 2025 4:41 PM

On a mid-2014 MacBook Pro, you should have an Ethernet device at en0 and a Wi-Fi device at en1. en3 and en4 are fine and the Thunderbolt Bridge at bridge0 seems right.


I have to assume you've added/deleted various new devices over time if the iPhone USB and RNDIS devices are at en13 and en14 (normally the "en" devices increment as they are added.


In this case, you may be better off recreating the Wi-Fi device from the System Preferences Network pane. If that doesn't work - it may be that your Wi-Fi card isn't being recognized. And as MartinR suggests, the System Report should also indicate that.

7 replies
Question marked as Top-ranking reply

Feb 17, 2025 4:41 PM in response to Michael_Yung

On a mid-2014 MacBook Pro, you should have an Ethernet device at en0 and a Wi-Fi device at en1. en3 and en4 are fine and the Thunderbolt Bridge at bridge0 seems right.


I have to assume you've added/deleted various new devices over time if the iPhone USB and RNDIS devices are at en13 and en14 (normally the "en" devices increment as they are added.


In this case, you may be better off recreating the Wi-Fi device from the System Preferences Network pane. If that doesn't work - it may be that your Wi-Fi card isn't being recognized. And as MartinR suggests, the System Report should also indicate that.

Feb 17, 2025 12:09 PM in response to MartinR

It seems that this only lists the network services I have. I need the port so I can add a new service.


Here's what


networksetup -listnetworkserviceorder


returns for me.



An asterisk (*) denotes that a network service is disabled.

(1) Thunderbolt Ethernet

(Hardware Port: Thunderbolt Ethernet, Device: en3)



(2) RNDIS/Ethernet Gadget

(Hardware Port: RNDIS/Ethernet Gadget, Device: en14)



(3) iPhone USB

(Hardware Port: iPhone USB, Device: en13)



(4) Bluetooth PAN

(Hardware Port: Bluetooth PAN, Device: en4)



(5) Thunderbolt Bridge

(Hardware Port: Thunderbolt Bridge, Device: bridge0)

Feb 18, 2025 12:40 PM in response to g_wolfman

Thanks for the typical port number, en1.


It's looking like my Wi-Fi card isn't being recognized. I can't add Wi-Fi from the System Preferences Network pane so I thought I'd give the command line a try.


networksetup -createnetworkservice Wi-Fi en1


** Error: Unable to access the System Configuration database.


It's not showing as a port in the System report either, although I can get Wi-Fi software version details there.


You are correct & I have added devices over the years.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Valid hardware port name for built-in on board Wi-Fi in macOS Big Sur

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.