Skip to main content
Participant
February 28, 2007
Question

cfftp problem

  • February 28, 2007
  • 6 replies
  • 595 views
Hi all,

Iam using cfftp to put files into a server using the following code
<CFFTP
ACTION="PUTFILE"
USERNAME="temp"
PASSWORD="temp"
SERVER="temp"
TRANSFERMODE="ASCII"
LOCALFILE="c:\blah\blah\1.txt"
REMOTEFILE="/temp/1.txt"
>

There seems to be some problem and am getting the following error message
500 Invalid PORT Command.

Please suggest.
Thanks.
This topic has been closed for replies.

6 replies

Participant
February 28, 2007
Hi alexeiramone,

I have talked to admin ppl about port 1023.They said that they'll look into that.Thanks for the info.Its already 12am here in INDIA...am leaving office...i wil let u know the resolution method.Thanks again.
Known Participant
February 28, 2007
I wish i could help ya more on this... i got the same problem, but ppl on the admin didnt tell me what was wrong.

Try this: since u're using active FTP, ask them regarding port 1023. If it's blocked maybe your PORT command is crying about this.
Participant
February 28, 2007
Hi alexeiramone,

Thanks for the reply.

I have tried using passive mode and was able to transfer the files.But the problem is current application demands us to use active mode.Moreover we are able to transfer files from test server using the same code.The problem seems to happen only in production server.I tried to manually ftp files into ftp server from production server.But i was not able to do so and got the message "Connection closed by the remote host".So it seems the ftp server is not allowing any files from production server thru ftp.Iam talking to my metwork ppl regarding this and hopefully i will be able to resolve this.
Participant
February 28, 2007
Hi Daverms,

I have checked the firewall settings with my network people and they say that eveything is fine.neways i will check again.

Thanks.
Known Participant
February 28, 2007
CFFTPs behind firewalls don't do 500 errors, they timeout. Invalid port command seems that u're reaching the server. Try using passive mode
Participant
February 28, 2007
Hi Daverms,

Thanks for the reply.
I just gave a dummy server name here and in actual code i have mentioned the correct server name.The code is working fine on test server but this problem is occuring on production server.I have just checked and found out that there are proper permissions to access the FTP server.
Thanks Again.
Inspiring
February 28, 2007
Hi,

It seems like you are behind a firewall.. Please Check with your administrator regarding the firewall settings...
Inspiring
February 28, 2007
Hi,

I think you might have wrongly mentioned the value as "temp" for the SERVER attribute.. rather it should be a valid server name... If that is right then check whether you have proper rights to access that FTP Server...