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

IPAddress.Any not support #118

Closed almoshammer closed 1 year ago

almoshammer commented 1 year ago

Whan use ip 0.0.0.0 that refer to any interface, shows ip not supported

jchristn commented 1 year ago

Which version of Watson are you using?

Which operating system are you using?

Which framework/runtime and version are you using?

Are you running as administrator?

almoshammer commented 1 year ago

Which version of Watson are you using? The last version, Which operating system are you using? .Windows 11, Which framework/runtime and version are you using? .Net 4.8 Are you running as administrator? I tried both

jchristn commented 1 year ago

When you say it's not supported, are you referring to not being able to pass in IPAddress.Any to the constructor (or via settings)?

With the Test.Default project, running as administrator on Windows 11, the server works fine on .NET 4.8 and also 6.0, 7.0, etc (just change _Hostname to *)

image

jchristn commented 1 year ago

BTW, I just confirmed that multiple people have had issues using 0.0.0.0. Use * or + instead. I'll check my README etc to make sure they don't reference 0.0.0.0.

almoshammer commented 1 year ago

Ok, Thanks for great work.

jchristn commented 1 year ago

Thanks @almoshammer I hope you have a great week and please let me know if you run into any issues!