Navigation Menu

Skip to content

Docker container not mapping to correct port - connection refused #21386

Answered by rjosephp
rjosephp asked this question in General
Discussion options

You must be logged in to vote

I figured out what is going on. I had to force Kestrel to listen to port 6002, by adding the below to the appsettings.json.

"Kestrel": {
    "EndPoints": {
      "Http": {
        "Url": "http://+:6002"
      }
    }
  }

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants