Search code examples
c#blazor-webassemblyapplicationhost

Change Visual Studio project's applicationhost.config where to do these


I want to do these:

127.0.0.1 localhost
127.0.0.1 en.localhost
127.0.0.1 api.localhost
127.0.0.1 en.api.localhost

where in the project's config\applicationhost.config file - how do I do this?


Solution

  • If you have windows pc, you can add this lines to the Windows\System32\drivers\etc\hosts file. It will redirect hostaddress to the matching ip. After that, don’t forget to run “ipconfig/flushdns” in command line.