ddollar / foreman

Manage Procfile-based applications
http://ddollar.github.com/foreman
MIT License
6.01k stars 630 forks source link

Port 5000 taken by Mac OSX #784

Open lvonk opened 2 years ago

lvonk commented 2 years ago

When starting Rails in using foreman like:

Procfile

web: rails server

It defaults to taking port 5000. On newer osx versions this port is now taken by MAC OSX though, so it won't start (or in some cases do start but the requests go to the airport process): https://www.reddit.com/r/webdev/comments/qg8yt9/apple_took_over_port_5000_in_the_latest_macos/

Of course you can fix this by specifying a -p but I guess the default should be available.

jon-sully commented 2 years ago

Relevant — this is due to macOS Monterey's new "AirPlay Audio from another Apple device to your Mac Desktop" feature:

https://daily-dev-tips.com/posts/thank-you-apple-for-hijacking-port-5000/