Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

FTP VI's hang when used over VPN?

Hi.  I am having trouble with an application I have written which dials to a cRIO in the field and downloads a data file to a host PC.   The application works well when used on an internal network, - However - when connected to the remote unit over VPN I have problems.  I use multiple communication protocols - The main one is a typical text data transfer using TCP which works both on the internal network and over the VPN.  If I use the Labview FTP vi's from the internet tool kit they only work when connected locally.

 

If I burrow down into the ftp vi's I can see that over the VPN connection the system is authenticating with the cRIO and sets the type to ASCII, but then I get an error message

 

I think the subVI which handles the registry is timing out and killing the FTP connection but I can't work out how to alter it.  Just to stress, this is only a problem when running over a VPN - If I use Filezilla then there are no problems so I know the actual connection is fine, it is just the labview implementation of it.

 

Labview 8.5, Internet Toolkit .

 

Thanks

 

Mike

 

0 Kudos
Message 1 of 4
(4,077 Views)

Hi Mike,

 

I hope you are well.  Thanks very much for your post.  Your application sounds very interesting.  The error that you are seeing can be caused by several issues, but I think that your suggestions are definitely on the right track.  I was wondering if it would be possible for you to post the VI that you are working on so that I can look at it and investigate the issue further.

 

Thank you kindly.

 

Best regards,

Prashant M
Applications Engineer
NI UK & Ireland

 

 

 

 

0 Kudos
Message 2 of 4
(4,059 Views)

Hi,

First, excuse me for my English.

I have the same problem as Mike. I'm working with VPN and I try to download for FTP, with Internet Toolkit, but the program can't download the file. With Filezilla I haven't any problem. And if I work with local LAN, I haven't any problem. It seems that labview can't download the file, there is expiration time on the download. They connect to FTP server and authenticate the user, but it doesn't download. It gives 66 error code.

I use the FTP get File.vi and download binary files.

 

Thanks

Mensaje editado por Davidtaddeus
0 Kudos
Message 3 of 4
(3,714 Views)

Hi David, 

 

Try changing the FTP get file.vi passive/active parameter from whatever it currently is set to to the other option. By default its sets to active (true). If you wire in a boolean constant of false then it will become passive. Try that out and see if you still get the error. 

 

Kind Regards,

Jas.W 

Jason W.
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 4 of 4
(3,671 Views)