What the. . . ?
I’m trying to set up and ftp server on my machine here.
This machine reaches the internet through a router, so I configured the router to talk to dyndns. the router forwards ports of my choosing.
I set up IIS, change the port to 2001 for extra security, and try to connect to it via a simple, reliable ftp program like WS_FTP 6.0 1 (before they tried to make it all weird and heavy and snazzy. No snazz for me, thank you.)
I get the following response from the IIS server:
WINSOCK.DLL: WinSock 2.0 Ipswitch WS_FTP LE 6.0 2003.11.04, Copyright © 1992-2003 Ipswitch, Inc. - - connecting to 25.11.22.33:574 Connected to 25.11.22.33 port 574 220 Microsoft FTP Service USER bobobobo 331 Password required for bobobobo. PASS (hidden) 230 User bobobobo logged in. CWD /Ipswitch/Product_Downloads 550 /Ipswitch/Product_Downloads: The system cannot find the path specified. PWD 257 "/" is current directory. SYST 215 Windows_NT Host type (S): Microsoft NT PASV 227 Entering Passive Mode (192,168,1,103,5,113). connecting to 192.168.1.103:1393 - - connecting to 192.168.1.103:1393 Connected to 192.168.1.103 port 1393 LIST 426 Connection closed; transfer aborted. ! Retrieve of folder listing failed (4)
Connection CLOSED???? WHY??
It turns out the answer is that I’m trying to use a port other than the default port 21.
It turns out that IIS 5.1 ONLY works if you set the port to 21. Isn’t that weird?
One Comment
no IIS 5.1 can connect using other other ports.but the other port say eg 2121 should be forwarded from your router or modem. Above you could connect successfully that means you successfully connected to port 21. that is only used to login or send commands
The problem here is when your client tried to use passive mode for data tansfer it failed to forward ports for
so forward a range of ports say 10000 to 10004 in NAT and then try agin.