microsoft / dotnet-podcasts

.NET reference application shown at .NET Conf featuring ASP.NET Core, Blazor, .NET MAUI, Microservices, Orleans, Playwright, and more!
https://dot.net
MIT License
2.75k stars 745 forks source link

Port 5000 already In use on macOS Monterey (Native feature) #142

Closed joseasync closed 1 year ago

joseasync commented 2 years ago

Running the docker-compose up to have the services running locally on the docker, I faced the error related to the port 5000 already in use, "Breaking" the setup.

It happens due to a standard feature on the OS (AirPlay Receiver) that is enabled as default and uses this port 5000. https://developer.apple.com/forums/thread/682332

As it's a native feature, I think would be nice to highlight this on the documentation that is required to disable this flag on the configurations to have the service running on the docker, or maybe we can raise the possibility to have this port changed on the project to work on any supported OS.

Reference: https://developer.apple.com/forums/thread/682332

davidbuckleyni commented 2 years ago

You should be able to change the port number from project properties. I think its either under debug or build options this is a trivial thing and one can be fix by simple user changes.

davidbuckleyni commented 2 years ago

Please see the first answer here

https://stackoverflow.com/questions/21202885/how-can-i-change-iis-express-port-for-a-site

I suggest we close this as not really a bug.

joseasync commented 2 years ago

Yes, it's not a bug, and easy to make it work. Just raised that for discussion. As it's necessary to change the port on the project for a specific OS, we could add it on the documentation, explaining that it's required (or disable the O.S feature). I can do that :)

jamesmontemagno commented 1 year ago

We should just change the port for development, let me look real quick.