Link to home
Start Free TrialLog in
Avatar of power_david_ie
power_david_ie

asked on

FTP connection

I was able to connect to a PC via FTP
this had W2K and IIS.

this PC is no longer available and I setup a new PC  with W2K and IIS.

When I try to connect to this new PC  i get the below message.

"connection closed by remote host"

Any ideas ?

Avatar of jcdesign4u
jcdesign4u

You have to configure the router to pass on port 21 on to the new pc if you have not configured it.
the same goes for your firewall if you have one in place (hardwareor software - it doesnt matter)
Just because you installed IIS does not automatically mean that FTP was set up and started.

In your Add/Remove Programs / Windows Component / IIS click on details and make sure that FTP was selected to be installed.  Then open your IIS manager and when you click on FTP Sites (right above the Default FTP site), you should see the default ftp site showing as running and listening on port 21.

You can also check to make sure that the pc is listening for ftp by doing a netstat -a and looking for the port TCP CompName:ftp

It might look something like this:
H:\>netstat -a

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    compname:ftp               CompFQDN:0         LISTENING
  TCP    compname:22                CompFQDN:0         LISTENING
  TCP    compname:smtp              CompFQDN:0         LISTENING

Doing that will make sure that the pc is actually listening for ftp requests.  Are you testing this from another box that's local to the pc you're trying to FTP to?  Or is it remote?
Avatar of power_david_ie

ASKER

Hi thanks for that ,

I ran the netstat -a .

  I am getting the bewlo and a e others
  TCP    compname:smtp              CompFQDN:0         LISTENING

  However it is not listening to FTP . How can I get it to listen for FTP ?
 



Quick question, is it listening on port 21?  That's ftp.  From the sounds of it, it probably isn't.

Okay, that means that you have smtp (email) turned on.  On a pc, I'm not sure why you'd have that on, but that's your call.  To make sure that you've got FTP on and running check your Windows Components in the Control Panel - Add/Remove Programs.  When that comes up, click on Internet Information Services (IIS) then click on Details to show the sub programs under IIS.  Make sure that FTP is checked.  That's how it should be set up.  Let me know if it's set up or not.
good luck
mltets
(Jim)
Another quick point.  NAORC is right that if you have a local software based firewall installed, it may be stopping the port as well...
Oj ,

 so far I have got it so that on the LAN i can ftp and log in to other PCs.

 However the remote users who who log on through VPN can not  FTP the same PCS.

 there is only one PC that they can access via FTP through the VPN.

 There is no software firewall on on PCS

 Any other HELP.

 Dave
ASKER CERTIFIED SOLUTION
Avatar of mltets
mltets
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial