🙂 İNSANLARIN EN HAYIRLISI INSANLARA FAYDALI OLANDIR 🙂

Ramazan HABER / NOTLAR / telefonu apiye bağlama Connect Flutter With Asp.Net Core Web API To Run On Emulator & Real Device

1-) telefonu apiye bağlama Connect Flutter With Asp.Net Core Web API To Run On Emulator & Real Device

 

BİRİNCİ YOL

yönetici olarak vs 2022 çalıştır ve aşağıdakini yap tamamdır

 

 

 

"iisExpress": {

  "applicationUrl": "https://0.0.0.0:44367",

  "sslPort": 44367

}

 

 

 

İKİNCİ YOL

 

var builder = WebApplication.CreateBuilder(args);

 

builder.WebHost.ConfigureKestrel(options =>

{

    options.ListenAnyIP(5000);

    options.ListenAnyIP(5001, listenOptions =>

    {

        listenOptions.UseHttps();

    });

});

 

 

 

 

 

{

  "$schema": "http://json.schemastore.org/launchsettings.json",

  "iisSettings": {

    "windowsAuthentication": false,

    "anonymousAuthentication": true,

    "iisExpress": {

      "applicationUrl": "http://localhost:52696",

      "sslPort": 44367

    }

  },

  "profiles": {

    "http": {

      "commandName": "Project",

      "dotnetRunMessages": true,

      "launchBrowser": true,

      "launchUrl": "swagger",

      "applicationUrl": "http://0.0.0.0:5000",

      "environmentVariables": {

        "ASPNETCORE_ENVIRONMENT": "Development"

      }

    },

    "https": {

      "commandName": "Project",

      "dotnetRunMessages": true,

      "launchBrowser": true,

      "launchUrl": "swagger",

      "applicationUrl": "https://0.0.0.0:5001;http://0.0.0.0:5000",

      "environmentVariables": {

        "ASPNETCORE_ENVIRONMENT": "Development"

      }

    },

    "IIS Express": {

      "commandName": "IISExpress",

      "launchBrowser": true,

      "launchUrl": "swagger",

      "environmentVariables": {

        "ASPNETCORE_ENVIRONMENT": "Development"

      }

    }

  }

}

 

 

 

aşağıdan 5000 ve 5001 e izin ver

 

 

 

 2024 Kasım 11 Pazartesi
 226