opensafely-core / opencodelists

OpenCodelists is an open platform for creating and sharing codelists of clinical terms and drugs.
https://www.opencodelists.org
Other
31 stars 11 forks source link

Port 7000 is used by default on macOS #2110

Open tomodwyer opened 6 days ago

tomodwyer commented 6 days ago

The OpenCodelists application runs by default for developers on port 7000. Since macOS Monterey (released October 25, 2021), the AirPlay receiver function of macOS runs on this port, meaning the development server cannot be run.

We should either:

You can also disable this functionality and therefore free the port by going to:

System Settings -> General -> Airdrop & Handoff -> Airplay receiver (previously: System Preferences > Sharing > AirPlay receiver)

And unchecking the tickbox.

sebbacon commented 1 day ago

Noticed this in passing and thought I'd observe port 8000 is also reserved and results in strange things if you try to run a server there.

Specifically it lets you run a Flask server there, but something about it means the page doesn't appear correctly.

I never worked out what was going on, just that switching to 8001 worked.

There's probably a whole list of reserved/used ports in macOS like that?

tomodwyer commented 1 day ago

I did find this list on Apple Support, but it's definitely missing some ports like the 7000 in this issue.