Host a Web Server with ADSL


If you have an ADSL connection it is possible to Host a Web Server even though you are not given a static IP address by the Internet Service Provider.

There’s a mechanism called Dynamic DNS where your IP Address is mapped to DNS and updated in short intervals so that it won’t loose track of your IP, providing you with something similar to a static IP

First of all you need to have these pre requisites

  • An ADSL connection
  • ADSL router or a Modem with access to configure
  • IIS

Creating a DynDNS Account

Let’s see how to create a DynDNS account. You can select NO-IP or DynDNS. In my case I have selected DynDNS because it gives more functionality than NO-IP. Open your browser and go to and click on Create account. Enter the required details and click on create account. Then your DynDNS account will be created and you have to check your emails to activate the account. Once you have activated the account you can go to DynDNS and click on “Account” and login to the system, then click on “My Services”. Under the “My Services” tab you will see “My Hosts”. Under that there’s a link called “Add Host Services” click on that. Then click on “Add Dynamic DNS Host”

Give a host name that you like and select a domain name. Keep the default IP address. And click on “Add Host”. Now your are done creating the Host

Configure DynDNS in the Router

Now you have to check whether you have an option in your router to configure dynamic DNS to automatically update when your ISP gives you a new using a USR 9107 Router which gives a special option to configure DynDNS to map the IP address with DNS from the router.


Even if you don’t have this functionality in your router you don’t have to worry at all. All you have to do is to download the IP update client and install it to your computer. You can download it from the following link

Dynamic DNS Updater

Once you have installed it’s very easy to configure. Just follow the wizard and enter your DynDNS account details then the system will automatically synchronize with the DynDNS and map your IP address with your domain


Configure the Router for Port Forwarding

This is only applicable if you’re using a router. Because a router uses NAT it shares one IP address to all the computers connected to them when they access to the internet.

This is one of the most important things to do .That is to configure your router to forward port 80 in to your web server. Check your router manual for port forwarding facility. In my router there’s an option called “Virtual Server” where I can assign various ports to forward to my Server IP address.

After going to “Virtual Server” page which you can locate in the Security menu. Click on “add” and you will see this “Add Virtual Server” page. In that Select the Server as “Web Server (HTTP)” and enter your Server IP address after that click on apply


Now you are almost done

Next step is to configure your HOST file

Edit HOST file

If you want to test these things in your computer you need to Configure your HOST file

Go to %systemroot%\system32\drivers\etc then edit the host file

At the end of the file enter your IP address (IP address of your server) and then keep a space and enter your website address

Eg :-

Configuring IIS

First go to “run” and type “inetmgr” and check whether you have IIS installed. Once you click ok IIS manager should open if it doesn’t open that means that your IIS is not installed. If that’s the case then go to Add/Remove programs and install IIS

Expand your Local Computer then expand Web Service Extensions. Click on that folder and

make sure that all your Web Extensions are running because by default in Windows 2003 Server Asp.Net functionality is disabled.

Now u can create a website and copy it to %systemdrive%\Inetpub\wwwroot

If it’s a public website you have to enable “Anonymous access” otherwise when ever some tries to login to the website they will require a username and a password. You can do this by going to IIS manager then expand local computer expand Websites then right click on Default Website go to properties click on the Directory Security Tab under Authentication and access control click Edit button then tick on “Enable anonymous access” and untick “Integrated Windows authentication”

Share one of your Folders to others over the Web

This is also another thing that you can do. You can share your folders and give a link to remotely access them and download.

Open my computer and go to the folder that you want to share right click on the folder and click properties click on the web sharing tab then click on “Share this Folder”. Make sure that you give Directory Browsing access. Then click ok. Go to IIS manager and set Anonymous permissions now your friends can access it via “http://yoursubdomainname.dyndnsdomain/aliasname”


5 comments on “Host a Web Server with ADSL”

  1. Erm. You just advertised a URL with various software for download on your blog, forgot to password protect the directory and left it wide open for people to visit. I’m not even going to mention what’s in there but err. you may want to reconsider leaving it open to public visits.

    What was that word I’m looking for? No, not smart – the other one.

    I apologize if I sound rude but what you may not realize is that your use of dyndns also gives potential crackers an easy way of finding your machine every time your IP changes. Obscurity is poor security but you just gave that (tiny) advantage away by advertising on your blog 🙂 I really don’t want all the new SLT ADSL customers to become spam spewing zombies nodes, thanks very much.

  2. Hey thnx a lot
    i have deleted that..
    it wz for testing purposes…

    i have explained how to put security…there’s no way to bypass Windows Authentication

    anyway thnx a lot 🙂

  3. no worries 🙂 If I were you, I wouldn’t be so comfortable saying “there is no way to bypass Windows Authentication” or Linux PAM or whatever. But that’s your choice. It’s not a choice I would make.

    By the way, you do realize that basic digest authentication which you’re using sends your username and password in cleartext across the internet, right?

    Congratulations, now the person running a packet sniffer between your machine and your remote access point not only knows how to access the software but also knows how to login to your machine @:)


  5. Ever heard of a replay attack?

    I did say digest authentication and a digest is not encryption. It is still cleartext. Further, ISA Server 2006 also falls back to Basic authentication which is reversible, not even a proper digest.

    None of that takes into account that your software may have an exploit discovered at any point.

    But thanks for proving all the stereotypes true 🙂 I have no intention of making you adopt better security practices if you do not see the need; this has been a public service announcement for others who may be compelled to do something similar.

    Have a nice day 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s