Sign in to follow this  
Followers 0
grasshopper3

FTP Connection Help

6 posts in this topic

I am trying to get a connection to an FTP site using _FTP_Connection(). I am getting an error (@error = -1). Can anyone help? I can connect with FileZilla fine.

$server = '192.168.1.10'
$i_Passive = '0'
$port = '990'
$username = 'username'
$pass = 'password'

$Open = _FTP_Open('sftp.tetradata.com')
MsgBox(0,'',$Open)
$Conn = _FTP_Connect($Open, $server, $username, $pass,$i_Passive,$port)
MsgBox(0,'',$Conn & "   " & @error)

Share this post


Link to post
Share on other sites



what server are you connecting to and what protocol do you use in FileZilla?

I am using "FTPS - FTP over implicit TLS/SSL". How do I set the protocol?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

That will not work with this udf as it can only do standard ftp.

by the way: You only answered the second question. In your posted snippet you were trying to connect to a server on the LAN, not sftp.tetradata.com... was that the intention?

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

That will not work with this udf as it can only do standard ftp.

by the way: You only answered the second question. In your posted snippet you were trying to connect to a server on the LAN, not sftp.tetradata.com... was that the intention?

I did that to hide the actual IP. It is not a LAN server.

Also is it possible to make FTPS connection in Autoit? If so how?

Edited by grasshopper3

Share this post


Link to post
Share on other sites

I did that to hide the actual IP. It is not a LAN server.

No sure how you think this could ever work.... hide an IP address?

Also is it possible to make FTPS connection in Autoit? If so how?

Not without some COM object or other external program that does.

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0