LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

system socket error (-4) while doing FTP

Hi I am trying to FTp some file to the Unit Under test using labWin FTP function. While debugging, everytime I execute this call, labWin gives me the following error: Funtion InetFTPSendFile:(return value == -4(0xfffffffc)) System Socet Error. I am not sure what is happening. I used to use it on other products, but I have no idea why it is not working on this one. Any suggestions?
 
Thank you.
0 Kudos
Message 1 of 4
(3,706 Views)

One more thing, I have tried to FTP this file using the regular command prompt and it works just fine and also I am able to ping it successfully. Any suggestions?

Thank you.

0 Kudos
Message 2 of 4
(3,700 Views)
Hi qsa301,

Have you tried the CVI shipping example called "ftpcInt.cws" ?  This uses the InetFTPSendFile function.  Trying the example program will help to determine whether the error is due to coding or connectivity problems.
Jessica
National Instruments
Product Support Engineer
0 Kudos
Message 3 of 4
(3,665 Views)
Thank you very much Jessica for your reply. I actually had a USB to ethernet adapter connected to my computer and that causing all this mess to happen. I disconnected it from my computer and the FTP started to work again. Thank you again for your help.
0 Kudos
Message 4 of 4
(3,623 Views)