Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


229 posts

Master Geek
+1 received by user: 6


Topic # 31763 29-Mar-2009 22:06
Send private message

I need to setup a webserver to share some files with another PC on my home network (has to be via HTTP, can't use an FTP server etc), so I was thinking installing IIS on my Vista Home Premium box would be the easiest way to go.

But I'm worried about security once it is enabled as this is my main system for everyday use, so a couple quick questions for anyone who has used it;

Is possible to limit access to the server only to other PC's on my local network?
Can the IIS service just be started manually when I want to have the server running? Or must it auto start?
Is there any other security tips I should know before I do this?

If running IIS is not a good idea, I guess I could setup an XP/Linux virtual machine and run IIS/Apache on that, but it would mean sharing a folder on my host to the guest, and then all transfers would be routed through the VM as well.

Cheers!


Create new topic
I iz your trusted friend
5809 posts

Uber Geek
+1 received by user: 140

Mod Emeritus
Trusted
Lifetime subscriber

  Reply # 204081 29-Mar-2009 22:27
Send private message

You will probably find that you can't install IIS on Home Premium.

And even if possible, make sure you configure IIS to answer only on your internal IP address (have you had any IIS experience?)

Alternatively is, get an Apache Virtual Application (for VMWare) and run it in virtual environment. This way you won't need an actual hardware pc.




Internet is my backyard...

 

«Geekzone blog: Tech 'n Chips Takeaway» «Personal blog: And then...»

 

Please read the Geekzone's FUG

 


22 posts

Geek


  Reply # 206007 8-Apr-2009 13:28
Send private message

could you not just create a share and give the appropriate permissions? if you share a folder and go to \\ip.address.here\share_name depending on how you have the computer setup it may ask for credentials, just need to put in computer-name\user-name and your password

if you want to lock it down you can create a new user on your computer and give that user access to your share, map it as a drive on client computers etc..

if you want to use iis you would need install it (programs and features / windows components)
create a new virtual directory under the default site and set the path to the dir you want to share, enable directory listing. navigating to server.ip.address/virtual_directory_name sould bring up a list of files/folders and allow the client to download files.

if you are connecting to the internet through a router external addresses wont be able to access iis unless you foward traffic to port 80 of your server, if you are connecting with dialup... well you dont really need to worry about it anyway

2584 posts

Uber Geek
+1 received by user: 5

Mod Emeritus
Trusted
Lifetime subscriber

  Reply # 206037 8-Apr-2009 16:07
Send private message

As above can you not just use microsoft shares? You can set the security up to only allow the access you want and is a lot easier to setup then IIS.







Media centre PC - Case Silverstone LC16M with 2 X 80mm AcoustiFan DustPROOF, MOBO Gigabyte MA785GT-UD3H, CPU AMD X2 240 under volted, RAM 4 Gig DDR3 1033, HDD 120Gig System/512Gig data, Tuners 2 X Hauppauge HVR-3000, 1 X HVR-2200, Video Palit GT 220, Sound Realtek 886A HD (onboard), Optical LiteOn DH-401S Blue-ray using TotalMedia Theatre Power Corsair VX Series, 450W ATX PSU OS Windows 7 x64

22 posts

Geek


  Reply # 206039 8-Apr-2009 16:20
Send private message

oops read the original post and had another question in there

Can the IIS service just be started manually when I want to have the server running? Or must it auto start?


the iis service is called world wide web publishing, you can right click on computer, click manage, expand services and applications, find the service, right click and hit properties, change the startup type to manual... when you want to start it up just select it from the services list and click start, click stop to stop :3

the only reason i can see you needing to use iis is if you were running linux on your other pcs. you said 'pc' so that pretty much rules out macs.

even if you are running linux on the clients you should still be able to open windows shares.


Infrastructure Geek
4057 posts

Uber Geek
+1 received by user: 195

Trusted
Microsoft NZ
Subscriber

  Reply # 206084 8-Apr-2009 21:02
Send private message

first of all your web server will only be available to computers on your local network unless you punch a hole in your firewall to publish it out to the internet.  you can also limit ip range in IIS but its probably unnecessary.

secondly - yes you can start/stop any time you like.  with IIS you can either use services control panel, or wrtee a batch script for your desktop/start ment

to start:
net start "IIS Admin Service"
net start "world wide publishing service"

to stop:
net stop "IIS admin service" /y

if you cant install IIS on home premium, there are other options without having to turn to Apache running in a virtual environment.  lots of free and open source options, also the free "ultidev cassini" web server http://ultidev.com/products/Cassini/

by all accounts http is a lot easier for interoperability than file shares to various devices so i'd stick with it (can you connect to a windows file share from an iPhone?)




Technical Evangelist
Microsoft NZ
about.me/nzregs
Twitter: @nzregs




229 posts

Master Geek
+1 received by user: 6


  Reply # 206101 8-Apr-2009 22:13
Send private message

Thanks for the suggestions guys. I needed a webserver because using wget in linux wouldn't download from a share. Should that have worked?

Anyway I my web server up and running tonight - ended up creating an XP VM and installing Apache on it. I've shared some folders on my host machine to the VM and then added them to the Apache config as Aliases. I restricted the IPs that can access the webserver to only local IPs as well.

You can install IIS on Home Premium but I decided I didn't want to add anything else to my OS install.


mjb

922 posts

Ultimate Geek
+1 received by user: 21

Trusted

  Reply # 206144 9-Apr-2009 09:41
Send private message

wget will download from ftp.

Honestly, install your distro's smb client package, and just mount a share:

mount -t smbfs //server_name_or_ip_address/share_name /mnt/local_mount_point

and then use cp. Depending on the OS requirements, you may have to provide additional parameters to mount for authentication.




contentsofsignaturemaysettleduringshipping


Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.