views:

114

answers:

2

Hi, I'd really like some help with this as I have hardly any idea where to start.

I'm fed up of not having somewhere to properly test any web code and the free hosting sites I've found only support half of what I want.

I want to setup my own server capable of dishing out webpages, running a database and handling WCF services.

I'll be using an old windows box, but I'm not exactly expecting tons of traffic ^_^

At the moment the only inkling I have is to Install Windows Server 2008 Enterprise edition (being a student has its uses) and try and figure out internet information services. Will that let me serve up an ASP.NET website?

What I'm looking for is a little guidance and any resources you think might help me.

Thankyou.

EDIT

Not sure why I'm downvoted, perhaps not programming related? I can't test my code properly if I have nowhere to run it now can I? I'm desperately looking for tutorials or articles telling me what I need to do.

+1  A: 

EDIT

I misunderstood the question. I'll keep my old answer up incase it helps anybody :)

To install go to Add/Remove programs (or Programs and Features in Vista) and on the left bar there will be "Add or Remove Windows Components" in XP and "Turn Windows features on or off" in Vista (WHY WITH THE NAME CHANGES DAMN-IT!!!??) Find "Internet Information Services" and check it if it's not already. Go ahead and install it.

After installation, go to Administrative Services then to IIS Manager. Here you can configure your IIS installation.

I'll play around with it myself and post back anything I find out. But I'm not an ASP.net guy. I like PHP :)

Old Answer

Note if you didn't already know: if you set up a webserver on your box all you have to do to get to it from within your network is go to http://(your server's IP)

To find out what IP you have in windows, Hit Start then Run, type cmd hit enter, then type ipconfig and you will get something like:

Windows IP Configuration


Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . : <BLABLABLA>
        IP Address. . . . . . . . . . . . : 192.168.1.155
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.1.18

Ethernet adapter Wireless Network Connection:

        Media State . . . . . . . . . . . : Media disconnected

The "IP Address" (192.168.1.155 in my example) is your local (i.e. only valid from behind your router) IP

The easiest way to do this would be to install a web server on your old box then set up your router to forward port 80 to that box (assuming you have a cable connection). Look at http://www.portforward.com/ for details on that.

Then you can use your router's IP address to access your websites from outside of your network. To find that IP address go to http://www.whatismyip.com/ from inside your network.

So, for example (fictitious IP warning) if you IP were 300.424.234.123 then you could get to it from outside your network (anywhere on the internet) by going to: http://300.424.234.123

If you want to serve a domain things become trickier. You would have to register the domain with a company like http://godaddy.com then point it to your IP. You would then have to configure your webserver to serve the correct documents depending on what the requested domain was. In Apache you do this with VirtualHosts. I have no clue on how to do this with IIS.

Those are the steps involved. If you have any questions about a particular one I would be happy to help :)

nlaq
Cheers for taking the time to reply ! I've had to do generic networking stuff before so I'm familiar with forwarding ports and ipconfig etc and I have a spare domain already registered, I need to figure out what would let me give an asp.net site on 80 and run WCF stuff alongside a database.
Tarks
Heh, sorry for treating you like you didn't know much there; I misunderstood the question... I think I know what you mean now; lemme revise my answer.
nlaq
+1  A: 

First of all, you don't need to go to the trouble of installing Windows Server 2008 Enterprise Edition for learning/testing purposes.

All you really need is:

Not knowing what level of experience you have, I don't want to go into all the details, but since you're also doing WCF, any book on WCF starts with a chapter on setting up IIS. Leave a comment if you need exact resources on setting up IIS and SQL Server.

Saqib
The WCF I've learned has come from using it alongside silverlight and looking ahead a few chapters in "Pro c# 2008"I've had only little experience with SQLServer, I know some SQL and I know my way around management studio well enough to create new databases and add users.Would IIs support ftp?
Tarks