如何使我的电脑作为主机服务器工作? [英] How to make My PC work as Host Server?

查看:113
本文介绍了如何使我的电脑作为主机服务器工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.NET Web应用程序,该应用程序已托管在IIS本地计算机中.

我的问题是:

是否有任何免费或付费的方法可以浏览此网站 互联网上作为主机服务器的应用程序?

谢谢

解决方案

将其直接发布到互联网上的最简单方法.您确实冒着攻击者冒风险的风险,然后才能够连接您的计算机,因此您将需要提高自己的安全技能.可能值得研究来自AWS,Azure或Google Cloud的免费托管选项之一.

要将本地计算机用作Web服务器,首先,将其配置为使用静态IP.自从我在Windows上进行操作以来已经有一段时间了,但这看起来很正确 http://mypc.no-ip.biz/mydemoapp/

但是,再次提醒您,将计算机暴露在互联网上.那里有讨厌的人,他们喜欢劫持其他人的计算机.

更新: 这应该为您提供有关端口转发的一些指导

http://www.howtogeek.com /66214/如何在您的路由器上转发端口/

尝试 http://www.noip.com 我刚刚登录,看起来很高兴.否则,请单击调制解调器中的所有设置以查找ddns或动态DNS.通常,将与之交谈的所有提供程序都处于下拉列表中.某些提供商的应用程序可以在PC上运行,对于某些人来说,使用调制解调器更容易. (或者对于不支持ddns的型号.)

I have an ASP.NET web application that has been hosted in IIS local Machine.

My Question is :

Is there any free or paid method that allows browsing this web application from the internet as Host Server ?

Thanks

解决方案

The easiest way to to publish it directly onto the internet. You do run the risk of attackers then being able to attach your machine, so you will need to brush up on your security skills. It might be worth looking into one of the free hosting options from AWS, Azure or Google Cloud.

To use your local machine as a web server, first, configure it to use a static IP. Its been a while since I've done it on windows, but this looks about right http://www.howtogeek.com/howto/19249/how-to-assign-a-static-ip-address-in-xp-vista-or-windows-7/.

Next you will need to configure port forwarding on your model. You want to send all traffic on port 80 to your machine, using its new fixed IP address. If your using HTTPS as well, configure port 443 to go to your machine. There are too many different modem brands, all of which handle this slightly differently, to consider offering any more help on this. You will need to do some reading up on your particular modem for step-by-step instructions.

If your internet connection is using a fixed IP, then you can stop here.

If not, or if you just want a domain name, then its worth signing up for a dynamic dns service. I use No-ip, its free, it integrates with my modem and I haven't had any problems with it in the last few years. Once this is in place, you will be able to hit your webserver just like a real one. Using something like "http://mypc.no-ip.biz/mydemoapp/

But again, be warned about exposing your machine on the internet. There are nasty people out there who love to hijack other peoples computers.

Update: This should give you some guidance on port forwarding

http://www.howtogeek.com/66214/how-to-forward-ports-on-your-router/

Try http://www.noip.com I just logged in and it seemed happy. Otherwise, have a click through all the settings in your modem looking for ddns or dynamic DNS. There is usually a drop down of all the providers that it will talk to. And some providers have apps that you run on your PC , which is easier that working with the modem for some. (Or for models that don't support ddns.)

这篇关于如何使我的电脑作为主机服务器工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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