c# - 使用同一 LAN 上的不同机器连接到 ASP.NET Core 托管服务器
问题描述
在运行我的 ASP.NET Core Web 应用程序时,我能够完成所需的工作。
我想在同一个局域网上使用不同的机器做同样的事情,<ip-address>:<port-number>/
我试图修改我applicationhost.config
看到这篇文章Connecting to Visual Studio debugging IIS Express server over the lan但没有运气。
<site name="WebSite1" id="1" serverAutoStart="true">
<application path="/">
<virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:8080:" />
</bindings>
</site>
文件路径是(solutionFolder)\.vs\config
尝试使用 bindingInformationbindingInformation=":8080:*"
我也禁用了我的防火墙。
我正在尝试在 Visual Studio 2017 上完成这项工作。
我也尝试使用 ngrok 来隧道我的本地主机。
有什么帮助吗?
This seems to be like an error connecting to http://<ip-address>:<port-number>. The response status was 0
从不同的系统使用时得到这个。
平正在工作。
解决方案
推荐阅读
- python - 如何更改多个 CSV 单元格中的值?
- python - 按列分组并连接另外两列的行值
- reactjs - 在 ReactJS 中显示上传目录的路径
- node.js - 无法使用 express 服务器访问 POST 表单的 req.body
- python-3.x - 如何在 Python 中制作重复文件或将 stdout 文件的内容复制到新文件?
- javascript - 在 JS 中创建一个依赖于数据属性的 If/Else 语句
- powershell - 使用 powershell 从 Dynamics 365 卸载 Business Central 扩展
- java - 将 3D 网格点分类为 3D 网格单元
- python-3.x - 无法使用 Yocto Dunfell 在 core-image-minimal 中包含 python3-dev
- azure - 创建 Azure 事件网格 webhook 订阅失败 TLS 握手