T
T
TechNOIR2018-12-17 12:13:11
IIS
TechNOIR, 2018-12-17 12:13:11

Visual Studio + IIS Express. How do I configure IISExpress to allow requests from other IPs?

Good afternoon!
I am compiling a small application on NET Core as an API web service.
Accordingly, testing takes place using ISS Express.
I need to send POST requests from other IPs to myself. I so understood by default IIS Express does not pass to itself?
I tried what I found on the internet:

netsh http add urlacl url=http://10.10.10.10:16095 user=Все
netsh http add urlacl url=https://10.10.10.10:44361 user=Все

But after that, the application does not even start. IIS cannot connect to the server
In Properties>LaunchSettings:
{
  "$schema": "http://json.schemastore.org/launchsettings.json",
  "iisSettings": {
    "windowsAuthentication": false, 
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://10.10.10.10:16095",
      "sslPort": 44361
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "launchUrl": "api/values",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "WebApplication9": {
      "commandName": "Project",
      "launchBrowser": true,
      "launchUrl": "api/values",
      "applicationUrl": "https://localhost:5001;http://localhost:5000",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
  }
}

How do I configure IISExpress to allow requests from other IPs?
thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny, 2018-12-26
Maltsev @maltsever

Hey! Is CORS enabled for these addresses? The problem may be in this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question