如何向我的朋友展示我的 ASP.NET 应用程序?

发布于 2024-09-03 21:18:20 字数 89 浏览 2 评论 0原文

所以,我做了一个很酷的演示,想展示给我的朋友们。但是当我向他们提供我的 IP 地址(以及开发服务器的端口和 aspx 页面)时,它无法连接。我怎样才能让它发挥作用?

So, I made a cool demo which I want to show to my friends. But when I give them my IP-address (with the Development server's port and aspx page), it doesn't connect. How can I make it work?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

你不是我要的菜∠ 2024-09-10 21:18:20

他们看不到开发服务器端口。
它只为本地计算机上的浏览器请求提供页面。

您必须将其发布到您的 IIS 或另一台具有 IIS 的计算机。

They can't see the development server port.
It only serves pages to browser requests on the local computer.

You have to publish it to your IIS or to another machine that has IIS.

缺⑴份安定 2024-09-10 21:18:20

将您的站点部署到本地 IIS 服务器

Deploy your site to your Local IIS server

灼疼热情 2024-09-10 21:18:20

开发服务器将仅服务器来自本地主机的连接。您需要将其部署到真实的 IIS 服务器实例。由于您可能没有 Windows Server,因此您可以在任何专业版本的 Windows 上安装 IIS。然后您的网站将在端口 80 上运行,就像任何其他网站一样。您可能仍然需要在家庭路由器上转发该端口。

The development server will only server connections from localhost. You need to deploy it to a real IIS server instance. Since you don't likely have Windows Server lying around, you can install IIS on any Professional edition of windows. Then your site will run on port 80, just like any other web site. You still may also need to forward that port on your home router.

苏别ゝ 2024-09-10 21:18:20

Cassini(开发人员 Web 服务器)有限制,不提供来自 Intranet/Internet 的 http 请求

您应该将站点部署到工作站上的 IIS(如果您的朋友通过 IP 观察工作站)或使用 Internet Asp.net 托管

Cassini (developers web server) has limitations and doesn't serve http requests from intranet/internet

You should deploy your site to IIS on your workstation (if your friends observe workstation via IP) or use Internet Asp.net Hosting

还在原地等你 2024-09-10 21:18:20

开发服务器只能由本地客户端访问。您需要在 IIS 上托管您的站点,以便他们访问它(假设它们位于您的本地网络上)。如果您需要在 Internet 上公开此站点,则必须找一家托管公司来执行此操作。

The development server can only be accessed by clients on the local box. You'll need to host your site on IIS to let them access it (assuming they're on your local network.) If you need to expose this on the internet, you'll have to get a hosting company to do that.

你的他你的她 2024-09-10 21:18:20

您可能正在使用名为 cassini 的内置网络服务器。默认情况下,该网络服务器仅接受来自本地主机的请求。

设置本地 IIS,并通过防火墙转发所有必要的端口

You are probably using the built-in webserver called cassini. By default, that webserver does only accept request from the localhost.

Set up a local IIS, and forward all necessary ports through the firewall

烈酒灼喉 2024-09-10 21:18:20

您应该找到一个可靠且已配置的网络主机并在那里托管您的网站。 Google 上第一个搜索“免费 asp.net 主机”的搜索结果是此处

You should find a reliable and already configured webhost and host your site there. The first hit on google for "free asp.net host" was here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文