Port 5000 already in use — MacOS Monterey issue

Anand Tripathi
Pythonistas
Published in
2 min readOct 29, 2021

--

Note: For non-members, this article is also available at https://progressstory.com/tech/port-5000-already-in-use-macos-monterey-issue/

Overview

MacOS Monterey (version 12) is the 18th and current major release of macOS. The successor to macOS Big Sur, it was announced at WWDC 2021 on June 7, 2021, and was officially released on October 25, 2021. Every update of Macintosh comes with some surprises and nightmares.

In this blog, I’m not talking about all the good thing that has been introduced in the new release but will be talking about one thing that is super annoying for every developer. This new version of macOS has “hijacked our cute little port — 5000" from us.

Yeah you heard this right, from ages developers are using this 5000 port for local development and now it's like a default thing for any local server. You’ll get an error as below. As of macOS ControlCe service is listening of the port.

OSError: [Errno 48] Address already in use

Issue

Run a Flask server or any server of your choice

Run the simple flask server using

python app.py

--

--