FTP active mode

Equis

Member
Joined
Sep 1, 2006
Messages
9
Programming Experience
Beginner
Hello,

I am using

VB.NET:
My.Computer.Network.UploadFile("c:\test.txt", "ftp://test.test.com", "user", "password")

This works fine for all servers apart from one that needs active mode (not passive)

Can anyone tell me how to get around this?

Thanks
 
I have a feeling I've already answered this at another forum but in case it was someone else you need to use an FtpWebRequest object and set its UsePassive property to False.
 
Back
Top