Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am on a Windows XP machine that is trying to connect to a Windows 2008 FTP. When trying to connect to my ftp site, I am getting a ftp: connect :Connection refused. I have confirmed that other machines are able to connect to the FTP and transfer data.

I have a batch file doing the FTPing:

enter image description here

I've taken the following steps to try to remedy the situation:

  • ping: I am able to ping and receive a response from my FTP server
  • tracert: I was able to do a full tracert and was able to get to my client machine to the host
  • firewall: There are no firewalls enabled on this machine
  • other FTP: I am unable to connect to any other FTP site
  • telnet: I am able to telnet to port 21.

Any assistance would be greatly appreciated.

edit: What I did notice that when I do a netstat, I see that port 21 is being occupied by PID 1256:

enter image description here

Now, if I check my task manager, I see 1256 is inetinfo.exe.

share|improve this question
The FTP service runs in the inetinfo.exe process so your netstat output is what I would expect. – joeqwerty Mar 6 '13 at 16:11
@joeqwerty would stopping that process remedy my problem? – etm124 Mar 6 '13 at 16:17
No, that would stop the FTP service. The FTP services runs in the inetinfo.exe process, which is perfectly normal and expected. – joeqwerty Mar 6 '13 at 16:19
@joeqwerty Thanks for the explanation. – etm124 Mar 6 '13 at 16:20
up vote 0 down vote accepted

Since other machines are able to connect to the FTP server I see two possible causes:

  • The XP machine IP address has been automatically (or manually) banned or blacklisted, causing the FTP server to reject any connection from this IP
  • A firewall or other IP filtering software is running on the XP machine and block the connection to the FTP server

Yet it's strange that you are able to telnet from the XP machine to the FTP server on port 21.

share|improve this answer
Could there be some sort of port blocking on the firewall/hardware level? – etm124 Mar 8 '13 at 15:56
yes, firewall is all about blocking port. Now Windows XP built-in firewall allow all outgoing connections by default I think. Do you have any other firewall software on the XP box or on the network? – 20c Mar 8 '13 at 23:26
It might be on the network level. This box is sitting on someone else's network. – etm124 Mar 11 '13 at 12:23

The other machines that can connect are also XP machines? Maybe your machine has FTP disabled? If you open a command prompt and type FTP does the ftp> come up?

share|improve this answer
Yes it does, ftp> comes up. – etm124 Mar 8 '13 at 15:55
Is it possibly a firewall issue? – Ericrobert Mar 8 '13 at 16:32
I found a site giving a ton of commands to trouble shoot FTP but it's for linux – Ericrobert Mar 8 '13 at 16:32
Maybe it can help you – Ericrobert Mar 8 '13 at 16:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.