Here are le basic steps. The spécifique details depend on what kind of router you have, mais le concepts encore apply:
-
Install IIS on le machine you want to be a web server. C'est okay to leave it on le standard port 80 in le plus cases (we'll remap le port later through le firewall depuis le plus ISPs disallow incoming traffic on port 80).
-
Allez dans DynDns.org et create yourself a name qui maps to votre home IP address. Ceci est important parce que votre address will change depuis time to time (the "D" in DHCP) et you want to have a well-known external name to votre home. Using DynDNS is pretty easy et they have good FAQs to help you. If votre router supports DynDns automatically, alors vous devrez log onto votre router et supply le dyndns.org username et password. If votre router does not support DynDNS, they have a small utility that you should download et install on votre IIS machine that runs tous le time et detects quand votre public IP address changes et updates votre dyndns host record.
-
Logon to votre router (typically a website located at 192.168.0.1, ou whatever le premier IP address of votre IP range is). Set a fixed IP address for votre IIS machine. Typically this is accomplished by assigning a fixed DHCP address to le MAC address of votre IIS machine. Once you do that, votre IIS machine will toujours fetch le même IP address quand it requests one via DHCP
-
Logon to votre router. Ajoutez un "port mapping" (or sometimes called a "static route"), mapping public TCP port 8080 incoming to le IP address of votre local IIS computer on port 80 (the par défaut port). Note that certains routers ne allow you change ports (often time, c'est le "static route" option). In that case, you're going to want to reconfigure IIS to listen on port 8080 (or whatever port you want to make public) et juste créez un route depuis public TCP port 8080 to port 8080 on votre IIS computer.
Évidemment, there are plusieurs places où this can be misconfigured et troubleshooting is inevitable.
-
Verify that IIS is working on votre local network. Fire up votre favorite browser et naviguez vers le local IP address et port of votre IIS computer: http://192.168.0.5:80, ou whatever is appropriate. Make sure it works. If not, fix it jusqu'à it does.
-
Verify that votre DynDNS record is correctly mapping to votre current public IP address. Vous pouvez figure out votre current public IP address by going to http://whatismyipaddress.com. Once you know that, open a command prompt et ping votre public name ("ping longhorn213.homeip.net" ou whatever name DynDNS gave you) et see si it works. The ping itself may be blocked (many routers block incoming pings), mais you should encore see le IP address that was looked-up. Make sure it matched votre actual public address. If not, work avec DynDNS org to get this working.
-
If troubleshooting steps 1 et 2 are les deux working, alors le problem is likely to be in le port mapping of votre router. C'est le hardest to troubleshoot usually. Often times routers have internal logs that you can turn on. Cherchez incoming traffic logs for le designated port et see what le router is doing avec it. Vous pouvez need to find a forum ou support site for votre spécifique router to get this working si you have problems.