Sunday, April 30, 2006

Problem solved: FTP and Windows 2003 Firewall

Since I'm new to blogging I didn't know how to use my own domain name with this blog. A quick Google revealed that the way it works is that I simply use Blogger as usual but whenever I publish anything it is published to my web server using FTP.

I have my own web server and currently do not use FTP so I had to set that up. I'm using Windows 2003 Server Enterprise Edition SP1 and I wanted to use the FTP server that comes with it (IIS 6). I have set up FTP on Windows before so I didn't think it would be a problem, but that was before the Windows firewall...

After setting up configuring and starting my FTP server I had no problem to log on to it, but I got a timeout right away when the FTP client (I was simply using IE6 as my FTP client) tried to do the initial directory listing. Same thing when I tried to publish from Blogger. Using localhost on the server itself or using the console FTP client - ftp.exe - in Windows XP SP2 worked fine however.

I'll skip all the Googling, MSDN search, trial and error and try to make a long story short:

I found out that there seems to be a problem with the Windows Firewall. On the Exceptions tab I had made an exception for FTP on TCP port 21 but as it turned out that did not work but I had to go to the Advanced tab, select my connection under Network Connection Settings and click the Settings button. From there check FTP Server and voìla, it works.

Why there is a difference between making the exception from the Exceptions tab or the Advanced tab I don't know, probably a bug if you ask me. But right now I don't care about that - I'm just happy that it's working!

16 Comments:

Anonymous Anonymous said...

This is great!!!
I have been looking for this...

Thank you for sharing your experience...

Mon Jun 12, 03:29:00 PM CEST  
Blogger dengyu_li said...

use excellent ftp tools

Sat Jun 24, 08:40:00 AM CEST  
Anonymous Anonymous said...

whoehoe...great! Just what I was looking for!

Tue Oct 10, 09:58:00 PM CEST  
Anonymous Anonymous said...

it is because the ftp protocol requires data ports etc to also be unblocked. They have a built in setting to take care of it all

Mon Jan 22, 10:45:00 PM CET  
Anonymous Anonymous said...

Its caled passive ftp connection

Mon Mar 05, 04:04:00 PM CET  
Anonymous Richard Leonard said...

Mate, your solution worked a treat. I was close to ripping my hair out as I was just putting the FTP in the exceptions list. The strange thing is that HTTP works fine by just putting it in the exceptions list!

Help was much appreciated!

Thu Apr 26, 04:10:00 PM CEST  
Anonymous Bo Durban said...

Dude! Thanks for posting this. Very much appreciated.

Thu Jun 07, 04:03:00 AM CEST  
Anonymous Anonymous said...

Thanks TJ, great help .

Wed Sep 12, 08:51:00 AM CEST  
Blogger Biggs said...

Beautiful! Just what I was looking for.

Thanks!

Wed Sep 26, 05:48:00 PM CEST  
Blogger Rohit said...

Thanks and Yes Thanks

Wed Nov 14, 07:23:00 AM CET  
Anonymous Anonymous said...

yyyeeeepeeeehhh... Got crazy w/ this problem ... was even switching OFF the firewall for each upload! ... BIG HUG to ya for this solution! (and a BIG BUG to Microsoft for again beeing such fouls - when are you sick guys starting to sell software, that works?!)

Sat Dec 22, 07:59:00 PM CET  
Anonymous Chessyang said...

O M G

Super late to this but....

searching for 2 days and all the "expert" website. CTD Nuggest (or whatever there called) Torrent every stuipd MS book on SK3.

So thanks a million. i hope i can buy you a cup of coffee someday (or tea).

Tue Jan 29, 05:06:00 AM CET  
Anonymous Anonymous said...

you're a legend, was going nuts last night trying to find the answer to this problem. Thanks very much.

Sat Feb 09, 11:48:00 AM CET  
Anonymous Anonymous said...

merci beaucoup!

Mon Mar 03, 11:49:00 PM CET  
Anonymous Anonymous said...

This post has been removed by a blog administrator.

Thu May 08, 11:13:00 AM CEST  
Anonymous Ben said...

Awesome Sauce! This problem has plagued me for a year and I ended up using 3rd party FTP software to get around it -- but now after a reset and thanks to your entry I can use Windows FTP Again! MS Needs to create a KB article for this one!

Wed Nov 26, 02:18:00 AM CET  

Post a Comment

Links to this post:

Create a Link

<< Home