foreman icon indicating copy to clipboard operation
foreman copied to clipboard

Port 5000 taken by Mac OSX

Open lvonk opened this issue 2 years ago • 1 comments

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.

lvonk avatar Mar 04 '22 08:03 lvonk

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/

jon-sully avatar Jul 08 '22 16:07 jon-sully