如何在局域网上发布ASP站点? [英] How to publish ASP site on LAN?

查看:92
本文介绍了如何在局域网上发布ASP站点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在开发一个ASP站点,它也使用SQL数据库并开发用于一些办公室工作。我想要一些关于如何在一台PC上发布ASP网站,然后在所有与LAN连接的PC上访问该网站的帮助。没有服务器可用,我只需要使用个人计算机完成所有工作。

Hello,
I am developing an ASP site which also makes use of SQL database and developed for some office work. I want some help about how to publish ASP site on one PC and then access that website on all PC's connected with LAN. No server is available and I have to complete all work only using personal computers.

推荐答案

嗯,你有问题。非服务器版本的Windows仅支持有限数量的入站连接。对于Windows 7及更高版本,我认为这是20个连接,所以如果你有超过这个数量的机器可以连接到你的网站,你将遇到问题。



服务器计算机需要运行IIS。哪个版本取决于服务器PC运行的Windows版本。您可以从控制面板执行此操作。您正在寻找Internet信息服务功能。选择适合您网站的选项。



Visual Studio有一个不错的小发布工具。您只需右键单击您的Web项目,然后单击发布。您将填写适合您的服务器PC的详细信息以连接到它。
Well, you have a problem. The non-server versions of Windows only support a limited number of inbound connections. For Windows 7 and above, I think it's 20 connections, so if you have more than that number of machines that can connect to your website, your going to have problems.

The "server" machine needs to have IIS running. Which version depends on the version of Windows the "server" PC is running. You can do that from the control panel. You're looking for the feature Internet Information Services. Pick the options appropriate for your site.

Visual Studio has a nice little Publish tool. All you do is right-click your web project and click Publish. You'll fill in the details appropriate for your "server" PC to connect to it.


您可以在计算机上的IIS上托管您的应用程序。然后,网络上的人应该能够使用 http://< yourcomputername> / URL< / yourcomputername> 来访问它。确保在防火墙设置中,万维网服务是允许的程序,并检查域复选框。



您可以通过转到允许程序来检查通过防火墙设置防火墙。由于这是办公室计算机,因此您可能没有必要的权限来更改此设置。您需要与网络管理员联系以便为您进行这些更改。



请注意,没有专用服务器可能会妨碍您的Web应用程序的可用性。
You can host your application on IIS on your computer. Then people on network should be able to access it using http://<yourcomputername>/URL</yourcomputername>. Ensure that in firewall settings, World Wide Web service is an allowed program and Domain check box is checked for it.

You can check this by going to "Allow a program through firewall" setting for Firewall. Since this is a office computer, you may not have required privilege for make changes to this setting. You will need to contact your network administrator to make these changes for you.

Note that not having a dedicated server may hamper availability of your web application.


这篇关于如何在局域网上发布ASP站点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆