Coder Social home page Coder Social logo

Comments (8)

Tratcher avatar Tratcher commented on July 30, 2024

What's the full error message?

from aspnetkatana.

harperjohn avatar harperjohn commented on July 30, 2024

image

from aspnetkatana.

harperjohn avatar harperjohn commented on July 30, 2024

@Tratcher Did the "owin" example work without error for you?

from aspnetkatana.

Tratcher avatar Tratcher commented on July 30, 2024

Ah, I do see the same error. This post might explain why: https://stackoverflow.com/questions/54010365/how-to-see-what-is-reserving-ephemeral-port-ranges-on-windows

from aspnetkatana.

harperjohn avatar harperjohn commented on July 30, 2024

Interesting @Tratcher !

PS C:\Users\john> netsh int ip show excludedportrange protocol=tcp

Protocol tcp Port Exclusion Ranges

Start Port End Port


 50000       50059     *
    • Administered port exclusions.

from aspnetkatana.

harperjohn avatar harperjohn commented on July 30, 2024

Ok... So something is reserving those ports...

But now I am very very curious why the asp.net either does not "see" or does not "care" or just overrides the reservation for some reason... (and it just just asp.net... the Hugo static site generator has a built in web server, and it gladly uses 50000)

from aspnetkatana.

Tratcher avatar Tratcher commented on July 30, 2024

In AspNetCore you're using the Kestrel server by default which runs in user mode with direct Sockets. In Owin self-host you're using HttpListener -> Http.Sys which runs in kernel mode. I don't know why the Http.Sys stack honors those reservations when Sockets don't, but that would explain why other apps your using don't care either.

from aspnetkatana.

Tratcher avatar Tratcher commented on July 30, 2024

Closing as answered/external.

from aspnetkatana.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.