Connecting Windows Home Server to web through two routers

I wanted to get my Windows Home Server configured correctly for web so I have valid certificate by Microsoft and I can use subdomain service they are offering. As my home network is not default that is expected by Windows Home Server (no direct access to router that is connected to web) I had to trick my WHS a little bit. In this posting I will show you how to get Windows Home Server work with Microsoft address (http://something.homeserver.com) if it is not connected directly to router that has access to web.

My home network

Here is overview of my home network. This is just overview and virtual machines running on other machines are not drawn out. Basically I have 3G modem that is providing web access to my network (it has static IP). Behind 3G modem there is wireless router. Home server and XBox are connected to router using cable and laptops access web over WiFi.

My home network

The not-so-default thing for WHS is fact that it is connected to wireless and not 3G mobile modem/router. I have to use 3G modem/router because using 3G USB modem on WHS makes UPnP service go mad and consume almost all CPU resource. This is known error but there is no fix yet.

Setting up router and subdomain

If you have similar network set up then you have to find some moments of time when people are not connected to your network or at least they are not using web to do something important.

  1. Disconnect internal router from WHS.
  2. Disconnect web router from internal router.
  3. Connect web router to WHS.
  4. Log in to WHS and run WHS dashboard.
  5. Open server settings and move to Remote Web Access tab.
  6. Click button Set Up after router and let it set up your router.
    (make sure your router supports UPnP – then everything goes automatically)
  7. Click button Set Up after domain name and go through steps to get your own homeserver.com address.
  8. Assuming that everything went well you can try to access your WHS from external network. You may also ask some friend to try if he or she can access your WHS from his or her computer.

Now it’s time to restore previous setup of network and configure it so WHS can still be accessed from web.

Configuring routers

Your first router must now let some traffic to internal one and internal one must redirect all this traffic to your WHS. There are many ways how to do it usually. This is just one and you can give your own suggestions in comments of this post.

  1. Disconnect web router from WHS.
  2. Connect web router to internal router.
  3. Connect WHS to internal router.
  4. Make sure WHS has static IP (let’s say it has 192.168.1.10).
  5. Make sure that your internal router has static IP for web connections and for internal network. If your web router uses 192.168.100.1 as IP address for network then make your internal router use 192.168.100.100 by example.
  6. Make sure your internal router has static IP set for internal network (let’s say it is 192.168.1.1).
  7. Enable DMZ in web router and assign external IP of internal router to DMZ IP. I want my internal router to handle security and routings.
  8. In internal router define port forwards to your WHS (192.168.1.10):
    • 80 – this is usual HTTP port and this is required for media streaming,
    • 443 – this is secure HTTP port and over this port you can see WHS web interface.
    • You can also enable forwards for other ports you need to access.
  9. Make sure that internal router is using full security if it is put to DMZ.
  10. Try to access your home server from external network.

Now everything should work normally and you should be able to access your WHS from other machines. If you check from WHS dashboard you should see picture like this (of course, with your own router name).

Remote access on WHS works

Conclusion

It was not hard to get Windows Home Server configured for web when it is behind two routers. You first let WHS configure web router and subdomain. Then you just restore your network setup like it was before and add some routings so WHS can be accessed from web. If your setup is correct then WHS can see your internal router and WHS server settings dialog shows that everything is okay.

Gunnar Peipman

Gunnar Peipman is ASP.NET, Azure and SharePoint fan, Estonian Microsoft user group leader, blogger, conference speaker, teacher, and tech maniac. Since 2008 he is Microsoft MVP specialized on ASP.NET.

    2 thoughts on “Connecting Windows Home Server to web through two routers

    • December 21, 2011 at 4:15 pm
      Permalink

      Is it necessary to have two routers? Surely you can just have one router, disable DMZ and do port forwarding from there for incoming requests (from the internet) on 80 and 443?

      Opening DMZ means that anything can potentially come into at least some of your network, which seems like a bit of a security risk?

      Perhaps a lot depends upon what make and model router you have though.

    • December 27, 2011 at 12:54 pm
      Permalink

      Thanks for question, anterec!

      I need two routers right now because my main router is not 3G capable and 3G modem is not powerful enough to serve my internal network. Previously was my internal network router visible to web and it coordinated everything. So it is not problem to put it in DMZ – it still does exactly what it did before.

      It is possible to use USB 3G modem with WHS and it works like charm but there are some bad problems – WHS starts consuming a lot of CPU when usng USB 3G modem. It is known problem but it is still not fixed by Microsoft.

      Besides 80 and 443 there are more ports that need to be open but I’m not yet discovered all of them. If I open access to WHS fully to web then WHS networking doesn’t report any problems. If I restrict access to only some of needed ports then there is something blocked that WHS needs. I’m still trying to find out what it is exactly.

    Leave a Reply

    Your email address will not be published. Required fields are marked *