shellscript on AIX to download file from windows to AIX

i require the shell script that is running on the AIX to download a file from Windows desktop to the location where the shell script resides onthe AIX system. I have used the below code: but it throwing the error as below.please help me at the earliest to resolve the issue.

error message :
--------------

$ /home/itaadmin/ITA_Test/current/ITAUpdateTicketJob.sh
ftp: connect: Connection refused
Not connected.
Not connected.
Not connected.
Not connected.

shell script program
---------------------
ftp -inv <ipadress> <<EOF
quote USER <username>
quote PASS <password>

ls

get C:\IAT\Doc forITA\709_LN_MAS.csv
bye
EOF
chmod 777 709_LN_MAS.csv
exit

Just break your FTP batch file into steps and run them one by one. Try:

$ ftp <ipaddress>

I suspect you're getting blocked... maybe bad IP or firewall.

If you get a login prompt, then attempt to log in with that <username> and <password>. Post your results.

-dufftime