简体   繁体   English

Asp.net应用程序可访问其他计算机

[英]Asp.net Application Accessible to other machines

我有application..it在本地主机上运行..我还需要一台机器来访问该应用程序..但是当在链接中键入我的IP地址而不是localhost ..它显示找不到服务器..您能告诉我吗?步骤我需要执行的操作才能访问其他计算机的应用程序。因此,截至目前,没有UAT服务器...

First off, make sure your firewall allows access through port 80. Then, check if your IIS allows access from outside IP's. 首先,请确保您的防火墙允许通过端口80进行访问。然后,检查IIS是否允许从外部IP进行访问。 I can help more if you provide this: 如果您提供以下信息,我可以提供更多帮助:

  1. Your OS (XP, Windows 7, etc) 您的操作系统(XP,Windows 7等)

  2. the local link to your app. 应用程序的本地链接。 Is there a port number needed to access the app? 是否需要访问该应用程序的端口号?

LaterEdit: Ok, then you need to do this: LaterEdit:好的,那么您需要这样做: 在此处输入图片说明

Now, your app will be served by IIS on port 80 (default). 现在,IIS将在端口80(默认)上为您的应用程序提供服务。 Check your firewall to allow traffic through this port. 检查您的防火墙以允许通过此端口的通信。

If you IIS is set for another port, then use that one. 如果将IIS设置为另一个端口,请使用该端口。 Checking the port in IIS: 在IIS中检查端口: 在此处输入图片说明

I'm going to assume that you are running the application from Visual studio which allows the localhost to run. 我将假设您正在从Visual Studio运行该应用程序,从而可以运行localhost。

In order for your application to be available to other machines on the network, you have to ensure that IIS is installed on your development machine and then a website is set up for that application as well. 为了使您的应用程序可用于网络上的其他计算机,必须确保在开发计算机上安装了IIS,然后还为该应用程序设置了一个网站。

The application existing in IIS is what will make it accessible across your network. IIS中存在的应用程序将使您可以通过网络对其进行访问。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM