C# Web - localhost:port works, 127.0.0.1:port doesn't work

前端 未结 7 758
你的背包
你的背包 2021-02-01 01:48

I just finished adding C# Web API components (Web API Models & Controllers) to a localhost copy of an existing project.

This Web API\'s GET-methods shou

7条回答
  •  既然无缘
    2021-02-01 02:19

    It's probably not an Android nor Windows issue. If you run your localhost by Visual Studio you will not get it available via 127.0.0.1

    Instead try to set IIS at your computer, then deploy from Visual Studio to IIS

    Alternatively, try UltiDev products: http://ultidev.com/products/cassini/CassiniDevGuide.htm http://ultidev.com/products/UWS-Cassini-Pro/Default.aspx

    Some peoples managed to use tunneling, but I never tried it and have no clue what to recommend.

    Just something which listening to 127.0.0.1 and redirecting data from-to it and localhost

提交回复
热议问题