dotnet / WatsonWebserver

Watson is the fastest, easiest way to build scalable RESTful web servers and services in C#.
MIT License
403 stars 83 forks source link

用外网ip访问不到的? #92

Closed yekainew closed 2 years ago

yekainew commented 2 years ago

Bad Request - Invalid Hostname HTTP Error 400. The request hostname is invalid. 用外网ip访问不到的?

jchristn commented 2 years ago

The host header on the incoming request must match the listener hostname you supply in the constructor. Otherwise, you can use *, +, or 0.0.0.0 as the listener hostname, but this will require you to run with administrative privileges.