Cannot run ftp

  • Thread starter Thread starter adrian
  • Start date Start date
A

adrian

Hi,
I have a small network at home, the one connect to internet has no problem
in using ftp; the one with IP 192.168.0.2 can use ftp to connect to remote
server, but it cannot open the data port, ie. I can't do command such as
dir, put, get etc. I can only use command such as pwd, cd etc. Does anyone
know why? Will my firewall has something to do with this problem?? Thx in
advance.

Adrian
 
Sorry, i forgot to say something, when I run the debug mode and apply the
"dir" command, i actually got the following error message:

ftp> dir
---> PORT 192,168,0,2,4,183
200 PORT command successful
---> LIST
425 Can't build data connection: No route to host

Why is that?
Thx.
adrian
 
If you are using IE to connect to a FTP server try putting it in PASV mode.
Goto TOOLS> INTERNET OPTIONS> and click on the ADVANCED tab.

1. REMOVE the check mark from USE FOLDER VIEW FOR FTP.

2. PLACE a check mark at USE PASV for FTP (good for DSL and CABLE MODEM).

Then click OK. Close and reopen IE.

"MAKE SURE YOU DO BOTH STEPS OR YOU WILL NOT BE IN PASSIVE MODE."
 
Hi,
I can only see this option here:
--> USE FOLDER VIEW FOR FTP
But not:
--> USE PASV for FTP option
Actually, why do we need to change to passive mode?
Thx.

Adrian
 
Oh,
I just downloaded a third party ftp client software, and I set the passive
mode, and it works!!! That's great, thx a lot! But would you mind to tell me
why the passive mode works, but not the normal mode? Thx.

Adrian
 
The FTP Protocol requires two connections a CONTROL CHANNEL and a DATA
CHANNEL. When a client connects to an FTP server (CONTROL CHANNEL), and then
issues a LIST command or DIR or TRANSFER, the DATA CHANNEL is made. On
ACTIVE MODE the server makes the second connection (DATA CHANNEL) back to
the client. If the client is behind a firewall like a DSL router this
connection attempt will fail because the router dosen't know that the client
is waiting for this connection and it blocks inbound connection attempts. On
PASSIVE mode the client makes the second connection to the server. So both
connections are coming from the client and the firewall (DSL router) dosen't
interupt outgoing connections.
 
Back
Top