Skip to content

Failed to bind to address http://127.0.0.1:5000: address already in use. #1456

Discussion options

You must be logged in to vote

I'm running into one last problem - with IIS already on the server it won't let me bind to 80/443.
(if we use 5000 or something like that in a test, we can load the site just fine on the server)

How do you share 80/443 between Kestrel/YARP and IIS?

@Tratcher

Application: MarketCarpenter-6.exe
CoreCLR Version: 6.0.21.52210
.NET Version: 6.0.0
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Net.Sockets.SocketException (10013): An attempt was made to access a socket in a way forbidden by its access permissions.
   at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName)
   at System.Net.Sock…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@OpenSpacesAndPlaces
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@Tratcher
Comment options

@OpenSpacesAndPlaces
Comment options

@Tratcher
Comment options

@OpenSpacesAndPlaces
Comment options

Answer selected by OpenSpacesAndPlaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Type: Bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #1454 on December 14, 2021 22:26.