How to setup an FTP server in Windows using IIS Como configurar um servidor FTP no Windows usando IIS

Posted on February 19, 2008 at 6:56 am Postado em 19 de fevereiro de 2008, 6:56 am

Earlier, I had written a post on Anteriormente, eu tinha escrito um post sobre how to turn your computer into a Windows file sharing server Como transformar seu computador em um servidor Windows compartilhar arquivos using a program called HFS. Usando um programa chamado HFS. If you’re looking for a quick way to share the files on your local computer with friends or family, this is an easy way to do so. Se você está procurando uma maneira rápida de compartilhar os arquivos em seu computador local com amigos ou familiares, esta é uma maneira fácil de fazer isso.

However, if you’re looking to setup your own FTP server in Windows using IIS, you can do so, but it requires more technical knowledge. No entanto, se você estiver olhando para configurar seu próprio servidor FTP no Windows usando IIS, você pode fazê-lo, mas isso exige mais conhecimento técnico. Of course, it also gives your more granular control over sharing and security, so it’s better for anyone who has a little computer know-how. Naturalmente, ela também dá o seu mais granular controle sobre compartilhamento e segurança, por isso é melhor para qualquer pessoa que tenha um pouco de computador know-how.

How to setup and configure an FTP server in IIS How to setup e configurar um servidor FTP no IIS

The first thing you’ll need to setup your own FTP server in Windows is to make sure you have Internet Information Services (IIS) installed. A primeira coisa que você precisa configurar seu próprio servidor FTP no Windows é certificar-se de que você tem Internet Information Services (IIS) instalado. Remember, this only comes with Windows XP Professional or Windows Vista Business or higher. Lembre-se, este só vem com o Windows XP Professional ou Windows Vista Business ou superior.

Click on Start , Control Panel and go to Add/Remove Programs . Clique em Iniciar, Painel de Controle e vá para Adicionar / Remover Programas. Then click on Add/Remove Windows Components . Em seguida, clique em Adicionar / Remover Componentes do Windows.

Adicionar remover programas

In the components wizard, scroll down until you see IIS in the list and check it off. No componentes assistente, role até ver IIS na lista e check it off. Before you click Next though, make sure you click on Details and then check off File Transfer Protocol (FTP) Service . Antes de clicar em Avançar, porém, certificar-se de que você clique em Detalhes e, em seguida, marque off File Transfer Protocol (FTP) Service.

IIS

File Transfer Protocol

Click OK and then click Next . Clique em OK e, em seguida, clique em Avançar. Windows will go ahead and install the necessary IIS files along with the FTP service. Windows irá avançar e instalar o IIS arquivos necessários juntamente com o serviço de FTP. You may be asked to insert your Windows XP or Windows Vista disk at this point. Você pode ser solicitado a inserir o seu Windows XP ou Windows Vista disco neste momento.

Setup and configure IIS for FTP Configuração e configurar IIS para FTP

Once IIS has been installed, you may have to restart your computer. Depois IIS foi instalada, poderá ser necessário reiniciar o computador. Now we want to go ahead and open the IIS configuration panel to setup our FTP server. Agora queremos ir em frente e abrir o IIS configuração painel de configuração nosso servidor FTP. So go to Start , then Control Panel and click on Administrative Tools . Então, vá em Iniciar e, em seguida, Painel de controle e clique em Ferramentas Administrativas. You should now see an icon for Internet Information Services . Agora você deve ver um ícone para o Internet Information Services.

IIS [6]

When you open IIS for the first time, you’ll only see your computer name in the left hand menu. Quando você abre IIS pela primeira vez, você só poderá ver o seu nome do computador no menu da esquerda. Go ahead and click the + symbol next to the computer name and you’ll see a couple of options like Web Sites, FTP Sites, etc. We’re interested in FTP Sites, so expand that out also. Vá em frente e clique no símbolo + ao lado do nome do computador e você verá uma jovem de opções como Web Sites, FTP Sites, etc Estamos interessados em sites FTP, de modo que a expandir também. You should see Default FTP Site , click on it. Você deverá ver Default FTP do site, clique sobre ele.

FTP site

You’ll notice after you click on the default FTP site that there are a couple of buttons at the top that look like VCR buttons: Play, Stop, and Pause. Você verá depois que você clicar sobre o padrão FTP site que há um par de botões na parte superior que pareçam VCR botões: Play, Stop, e Pausa. If the Play button is greyed out, that means the FTP server is active. Se o botão Play é acinzentado, isso significa que o servidor de FTP está ativa. Your FTP server is now up and running! Seu servidor FTP está agora instalado e funcionando! You can actually connect to it via your FTP client software. Você pode ligar para ele realmente via FTP seu software cliente. I use Smart FTP, but you can use whatever you like best. Eu uso Smart FTP, mas você pode usar o que você mais gosta.

Open your FTP client software and type in localhost as the host name and choose Anonymous for the login. Abra o seu cliente de FTP software e tipo de localhost como o nome do host e escolha Anónimos para o login. Connect and you should now see an empty folder. Ligue e você deve ver agora uma pasta vazia.

Localhost

Ok, so that’s step 1! Ok, de modo que o passo 1! Now where the heck is this folder that you are currently viewing? Agora, sempre que o Parreira é esta pasta que você está visualizando atualmente? Well the default FTP site is actually located in C:\Inetpub\ftproot . Pois o padrão FTP site é, na verdade, localizado em C: \ Inetpub \ ftproot. Open this directory and dump some files into it. Abrir este diretório e dump alguns arquivos nele.

FTP arquivos

Now refresh on your FTP client and you should now see your files listed! Agora atualização em seu cliente de FTP e você deve ver agora os seus arquivos listados!

FTP sites

So you now have an up and running FTP server on your local computer. Portanto, agora você tem um servidor FTP instalado e funcionando em seu computador local. Before I show you how you can create separate folders that are stored in a different directory other than the default Inetpub folder, let’s first connect to our FTP server from another computer on the network. Antes de me mostrar-lhe como você pode criar pastas separadas que são armazenados em um outro diretório diferente do padrão Inetpub pasta, vamos primeiro conectar-se ao nosso servidor FTP a partir de outro computador na rede.

In order to do this, you’ll have to open up the Windows Firewall to allow FTP connections to your computer, otherwise all external computers will be blocked. Para fazer isso, você tem que abrir o Firewall do Windows para permitir conexões FTP para o seu computador, senão todos os computadores externos serão bloqueados. You can do this by going to Start , Control Panel and then clicking on Windows Firewall . Você pode fazer isso, vá em Iniciar, Painel de Controle e, em seguida, clique em Firewall do Windows. Click on the Advanced Tab. Clique no separador Avançadas.

Windows firewall

Under the Network Connection Settings section, make sure all of the connections are checked in the left list and then click on the Settings button. Sob a Network Connection seção Configurações, certifique-se de todas as conexões sejam verificados na lista à esquerda e, em seguida, clique no botão Configurações. You’ll now be able to open certain ports on your computer based on the service your computer is providing. Você vai agora ser capaz de abrir algumas portas no seu computador baseado no serviço de seu computador está fornecendo. Since we are hosting our own FTP server, we want to check off FTP Server . Uma vez que estamos a hospedagem nosso próprio servidor FTP, queremos verificar off FTP Server.

FTP serviços

A little popup window will appear with some settings that you can change, just leave it as it is and click OK. Uma pequena janela pop-up aparecerá com alguns ajustes que você pode mudar, basta deixá-lo como está e clique em OK. Click OK again at the main Windows Firewall window. Clique em OK novamente na janela principal do Windows Firewall. You have now opened up the firewall for FTP connections. Você já abriu o firewall para conexões FTP. Now try to connect to your FTP site from a different computer on your network. Agora tente se conectar ao seu site FTP a partir de um computador diferente na sua rede. You’ll need to get the IP address of the computer first before you can connect into it from a different computer. Você precisará obter o endereço IP do computador antes de você pode ligar para ela, a partir de um computador diferente.

Go to Start , click Run and type in CMD . Clique em Iniciar, clique em Executar e digite CMD. Type IPCONFIG and jot down the number for IP Address: Tipo IPCONFIG e jot para baixo o número de IP Address:

Endereço IP

In your FTP client on the other computer, type in the IP Address you just wrote down and connect anonymously. Em seu cliente de FTP no outro computador, digite o endereço IP que você acabou anotavam e ligar anonimamente. You should now be able to see all of your files just like you did on the FTP client that was on the local computer. Você deve agora ser capaz de ver todos os seus ficheiros, tal como fez no servidor FTP que estava no computador local.

Now that the FTP site is working, you can create as many folders as you like for FTP purposes. Agora que o site FTP está trabalhando, você pode criar tantas pastas como você gosta de FTP fins. In this way, when a user connects, they specify a path that will connect to one specific folder. Desta forma, quando um usuário se conecta, que especificar um caminho que vai ligar a uma pasta específica.

Back in IIS, right click on Default FTP Site and choose New , and then Virtual Directory . Voltar no IIS, clique direito sobre Default FTP Site e escolha Novo e, em seguida, Virtual Directory.

Diretório virtual

When you create a virtual directory in IIS, you’re basically going to create an alias that points to a folder on the local hard drive. Quando você cria um diretório virtual no IIS, você está basicamente vai criar um alias que aponta para uma pasta no disco rígido local. So in the wizard, the first thing you’ll be asked is for a alias name. Portanto, no assistente, a primeira coisa que você será perguntado se a um alias nome. Make is something simple and useful like “WordDocs” or “FreeMovies”, etc. Faça-se de algo simples e útil como "WordDocs" ou "FreeMovies", etc

Diretório virtual alias

Click Next and now browse to the path where you want the alias to refer to. Clique em Avançar e agora navegar até o caminho onde você quer que o alias para referir-se. So if you have a bunch of movies you want to share, browse to that folder. Portanto, se você tiver um punhado de filmes que deseja compartilhar, navegue para essa pasta.

Servidor FTP

Click Next and choose whether you want it as Read access only or Read and Write access. Clique em Next e escolher se você gostaria que fosse como Ler acesso só ou Ler e Escrever acesso. If you simply want to share files, check Read. Se você simplesmente deseja compartilhar arquivos, check Leia. If you want people to be able to upload files to your computer, choose Read and Write. Se você quiser que as pessoas sejam capazes de carregar arquivos em seu computador, selecione Ler e Escrever.

Leia escreva

Click Next and then click Finish! Clique em Next e, em seguida, clique em Concluir! Now you’ll see your new virtual directory below the default FTP site. Agora você verá seu novo diretório virtual abaixo do padrão FTP site. You can connect to you using your FTP client by putting in the Path field “/Test” or “/NameOfFolder”. Você pode conectá-lo a usar o seu cliente de FTP, colocando no campo Caminho "/ Test" ou "/ NameOfFolder".

Conexão FTP

Now you’ll only see the files that are in the folder we had browsed to. Agora você só ver os arquivos que estão na pasta tínhamos navegado a.

Anonymouse

And that’s about it! E é sobre ele! You can create as many folder as you like! Você pode criar tantas pastas como você gosta! The only thing other thing that you would need to do is to give out your public IP address to anyone who is connecting from outside of your internal network. A única coisa que outra coisa que você precisa fazer é dar o seu endereço IP público a quem está ligando de fora da sua rede interna. If you want users to connect from anywhere in the world, you’ll have to give them your public IP address, which you can find out by going to Se você deseja se conectar usuários de qualquer lugar do mundo, você tem de dar-lhes o seu endereço IP público, que você pode descobrir indo até http://whatismyipaddress.com/ Http://whatismyipaddress.com/ .

Finally, you’ll need to forward the FTP port on your router to your local computer that is hosting the FTP server. Finalmente, você precisará fazer frente à porta FTP no seu roteador para seu computador local que está hospedando o servidor FTP. Port Forward Port Encaminhar is a great site to show you how to forward ports on your router to computers on your home network. É um ótimo local para mostrar-lhe como encaminhar portos em seu router para computadores em sua rede doméstica.

Any questions, post a comment! Todas as perguntas, posto um comentário! Enjoy! Divirta-se!

Technorati Tags: Technorati Tags: , De , De , De , De , De

If you enjoyed this post, make sure you Se você gostou deste post, certifique-se de subscribe to my RSS feed Inscrever-se em meu feed RSS ! !

» Filed Under »Arquivado Sob Computer Tips Computador Dicas

Related Posts Related Posts

Please post your comments/suggestions! Favor enviar seus comentários e sugestões!