Jump to content

Recommended Posts

Posted

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)
  • Developers
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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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
  • Developers
Posted

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.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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
×
×
  • Create New...