Thank you, Apple, for hijacking port 5000 😣

You might have already upgraded to Mac OS Monterey. If not, there might be an unpleasant surprise awaiting you.

For me, it was running the following command.

npm run dev

And getting a message stating port 5000 is already in use…

It took me…


This content originally appeared on DEV Community and was authored by Chris Bongers

You might have already upgraded to Mac OS Monterey. If not, there might be an unpleasant surprise awaiting you.

For me, it was running the following command.

npm run dev

And getting a message stating port 5000 is already in use...

It took me a good couple of minutes to find out no other application was using this port, and I was baffled at this point.

Surely all I did was upgrade to Monterey...

Re-opening port 5000 on Mac OS Monterey

After doing some research, I did a portscan and noticed "AirPlay Receiver" was using this port.

That didn't sound like anything I made.
Did some more research to find out that the AirPlay receiver is on by default.

To re-enable port 5000, you can simply turn off this checkbox.

AirPlay Receiver in macOS Monterey listening on port 5000

You can find this checkbox in Settings > Sharing > AirPlay Receiver.

This is not a new thing though, Apple has been using port 5000 for AirPlay since 2004.
The only new part is the introduction to having a Mac listening to AirPlay, which, as mentioned, uses port 5000.

If you wish to use AirPlay on your Mac, I'd suggest switching your development to a different port.

Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on Facebook or Twitter


This content originally appeared on DEV Community and was authored by Chris Bongers


Print Share Comment Cite Upload Translate Updates
APA

Chris Bongers | Sciencx (2021-12-03T09:23:50+00:00) Thank you, Apple, for hijacking port 5000 😣. Retrieved from https://www.scien.cx/2021/12/03/thank-you-apple-for-hijacking-port-5000-%f0%9f%98%a3/

MLA
" » Thank you, Apple, for hijacking port 5000 😣." Chris Bongers | Sciencx - Friday December 3, 2021, https://www.scien.cx/2021/12/03/thank-you-apple-for-hijacking-port-5000-%f0%9f%98%a3/
HARVARD
Chris Bongers | Sciencx Friday December 3, 2021 » Thank you, Apple, for hijacking port 5000 😣., viewed ,<https://www.scien.cx/2021/12/03/thank-you-apple-for-hijacking-port-5000-%f0%9f%98%a3/>
VANCOUVER
Chris Bongers | Sciencx - » Thank you, Apple, for hijacking port 5000 😣. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/12/03/thank-you-apple-for-hijacking-port-5000-%f0%9f%98%a3/
CHICAGO
" » Thank you, Apple, for hijacking port 5000 😣." Chris Bongers | Sciencx - Accessed . https://www.scien.cx/2021/12/03/thank-you-apple-for-hijacking-port-5000-%f0%9f%98%a3/
IEEE
" » Thank you, Apple, for hijacking port 5000 😣." Chris Bongers | Sciencx [Online]. Available: https://www.scien.cx/2021/12/03/thank-you-apple-for-hijacking-port-5000-%f0%9f%98%a3/. [Accessed: ]
rf:citation
» Thank you, Apple, for hijacking port 5000 😣 | Chris Bongers | Sciencx | https://www.scien.cx/2021/12/03/thank-you-apple-for-hijacking-port-5000-%f0%9f%98%a3/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.