Jump to content

FTP Connection Help


Recommended Posts

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)
Link to comment
Share on other sites

  • Developers

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.
  :)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Developers

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.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...