500 Illegal address in PORT command error when i am trying to push a file from FTP command through a batch file
ftp -s:scriptfile location path IP address > Output file path

I have written a script file which contains the following code
prompt off
put"filename.extension" %"filename.extension"%A

when i am calling the batch file it pushes the file to destination, in the process it prompt me the following error
500 Illegal address in PORT command.

The above error occurs only for sometime during month and it automatically starts working properly after sometime, i unable to understand why this kind of error occurs can someone help me.