0

We are trying out some cors validations. So I am currently running a ASP.NET Web API on my own machine and I can do a call to a controller which simply returns true when going to the following address

https://localhost:44387/api/Server/ServerCheck

But now I'd like to invoke the ServerCheck method by going to the IP address. a ipconfig command on my windows says it is the following:

enter image description here

But if I now go to

https://192.168.3.252:44387/api/Server/ServerCheck

Then a bad request is returned

enter image description here

Isn't the IPv4 address exactly the same destination as simply going to localhost? How could I go to my web server with entering a static address such that we can try to access the server from a different machine

sideshowbarker
  • 72,859
  • 23
  • 167
  • 174
  • Perhaps these questions will shed some light on your problem https://stackoverflow.com/q/33419568/2030565 and https://stackoverflow.com/q/38125490/2030565 – Jasen Aug 19 '21 at 20:15

0 Answers0