简体   繁体   English

如何使用公共IP地址在家外部托管网站?

[英]How can I host a website externally from home using public an ip address?

please help a newbie out I have installed windows server 2008 r2 and IIS at home, I also purchased a domain through godaddy.com I would like host a simple html file on this domain, my ISP provider is Cox and I dont have a static IP dedicated. 请帮助一个新手我已经在家里安装了windows server 2008 r2和IIS,我还通过godaddy.com购买了一个域名我想在这个域上托管一个简单的html文件,我的ISP提供商是Cox而我没有静态IP专用。 my server is hooked up to a router. 我的服务器连接到路由器。 any help or tutorial would be highly appreciated. 任何帮助或教程将受到高度赞赏。

questions: is there any forwarding needed, if so how? 问题:是否需要转发,如果有,如何? how can I enable any ports? 我该如何启用任何端口? or enable firewall on windows server? 或在Windows服务器上启用防火墙?

Thanks 谢谢

Sure, that's possible. 当然,那是可能的。 Try this: 尝试这个:

  1. Assign your home server a static IP address so your router doesn't give it a new one when its DHCP lease expires. 为您的家庭服务器分配一个静态IP地址,以便路由器在其DHCP租约到期时不会给它一个新的。
  2. Forward the port you're running IIS on from the outside world (DMZ) to that static IP 将您正在运行IIS的端口从外部世界(DMZ)转发到该静态IP
  3. Setup an account with no-ip.com and install their app. 使用no-ip.com设置帐户并安装他们的应用程序。 You'll get a subdomain like omg.no-ip.com 你会得到一个像omg.no-ip.com这样的子域名
  4. Log in to GoDaddy's panel and set a CNAME for your domain, so traffic to your domain goes to that no-ip address above, which the windows client keeps updated 登录GoDaddy的面板并为您的域设置CNAME,因此您域中的流量将转到上面的no-ip地址,Windows客户端会不断更新

This is how I have it setup at home, despite the fact I have a static now. 这就是我在家里设置它的方式,尽管我现在有一个静态。

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

相关问题 如何在Gitlab中更改主机IP地址 - How can i change host IP address in Gitlab 如何通过我的IP地址从远程计算机访问本地托管的IIS网站? - How Can I Access Locally Hosted IIS WebSite from Remote Computer By My IP Address? 无法使用公共IP地址查看IIS托管的网站 - Cannot view IIS hosted website using public IP address 我无法使用域名在其他计算机上访问我的网站,但可以使用 IP 地址访问 - i can't access my website in other computer using domain name but can access using IP address 获取网站客户端返回主机IP的IP地址 - Getting IP Address of website client returning host IP 我如何使用真实IP地址远程访问asp.net网站 - How can i access an asp.net website remotely with real IP address 如何安全地给我的[big org] Intranet匿名非SSL Web应用程序一个公共IP地址访问权限? - How can I securely give one public IP address access to my [big org] intranet anonymous non-ssl web application? IIS 网站使用本地主机,但不使用 IP 地址 - IIS website works with localhost, but not using an IP address 使用其IP地址访问RDP中的网站 - Access website in and RDP using it's IP address 公共 IP 地址指向内部 IP 地址 - Public IP address pointing to Internal IP address
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM