允许在asp.net到本地主机的网站远程访问 [英] Allow remote access to a localhost website in asp.net

查看:290
本文介绍了允许在asp.net到本地主机的网站远程访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我开发了一个网站,是一台机器(本地主机),我想一个朋友从我的网络之外访问它,我做了一些研究,我所指出端口转发作为解决方案。任何好的链接可以参考我也将是非常美联社preciated。

Hi I have developed a website and is on a machine(localhost), I want a friend to access it from outside my network, I have done some research and am being pointed to port forwarding as a solution. Any good links I can refer too will be highly appreciated.

推荐答案

不是一个编程的问题,而是如何设置你的路由器。

Not a programming question, but how to setup your router.

路由器,特殊的,你可能用,也别期待内部网络之外的要求,出于安全和因为他们不知道从哪里发送。在ADSL调制解调器

The router, especial the adsl modems that you probably use, they not forward outside request to inside network, for security and because they are not know where to send them.

因此​​,对你的路由器,你需要首先转发器上的外线电话到PC上安装。

So on the setup of your router you need first of all forwarder the outside calls to your pc.

现在,这有两个参数,什么端口发送到什么内部IP

Now, this have two parameters, what port send to what inside ip.

如何转发你的路由器上的端口页面与图片和实施例。

How to forward ports on your router page with images and examples.

让说,你必须在IP 192.168.1.100的路由器后面的电脑,并安装有上80本地IIS,那么你需要设置路由器,所以当是接受电话端口80,将其发送到192.168。 1.100

Let say that you have a pc behind the router at ip 192.168.1.100, and setup there a local iis on 80, then you need to setup the router so when is accept call on port 80, to send it to 192.168.1.100

现在,你需要知道什么IP给你的朋友,试图拨打电话给你,你可以使用的 http://www.whatismyip.com/ 他们看到你的IP外面是一个你的朋友必须输入浏览器。

Now you need to know what ip to give to your friend to try to make call to you, you can find it using the http://www.whatismyip.com/ The ip they see you outside is the one your friend must type on browser.

和则需要让你的IIS中运行,让你的电脑防火墙接受端口80上的电话。

And then need to make your iis run, and allow your pc firewall to accept calls on port 80.

这篇关于允许在asp.net到本地主机的网站远程访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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