我使用Visual和在本地运行web应用程序。我可以访问的网页应用程序,没有任何问题使用https://localhost:44300。
出于好奇,我想使用IP地址访问它,所以我尝试了https://10.1.1.229:44300,但是得到了以下错误:

我想我可以用我从ipconfig获得的私有IP地址替换本地主机:

我还注意到它说证书不安全。
如何使用IP地址访问本地web应用程序?
发布于 2022-02-28 06:14:24
您可以尝试~\Documents\IISExpress\config\applicationhost.config' file的下列设置。
<binding protocol="http" bindingInformation="ip address:port:host header" />https://stackoverflow.com/questions/71281802
复制相似问题