LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FTP Read Through Firewall, again

I didn't receive any response last time I posted this so I thought I'd try
again:

I need to be able to read a simple text file on the internet on computers
that might have a firewall. I can easily do this using Data Socket on my
computer that has a DSL modem with firewall but when I try the same program
on computers that have a different type of firewall it doesn't work. I've
tried to use Active-X to control a web browser and have it save the file but
I can't figure out how to do this without the user interaction. Any ideas?

Neal Pederson, President, VI Control Systems
1923 Mendius Lane, Los Alamos, NM 87544
TEL: (505) 662-1461, FAX: (866) 422-2931
np@vicontrols.com, www.vicontrols.com
0 Kudos
Message 1 of 4
(2,762 Views)
Hi Neal,
First of all, it's important to know what type of server offers access to that text file: FTP, HTTP or Data Socket.

If you are planning to use DS server, the solution is to configure those firewalls to accept OUTPUT directed to DS port (I don't know the number).
With FTP and HTTP servers it's easier because almost every computer connected to the Internet has access to them. In case the access is blocked by the firewall, again � the only solution is to configure it properly (allow OUTPUT for port 21 (ftp) and 80 (http)).

Regarding your application, as far as I remember, you can access FTP and HTTP sources via Data Socket functions (setting the URL properly).
Anyway, if you want to do it via ActiveX, try to use "Microsoft Internet Transfer Contr
ol", using GetChunk method after capturing the StatusChanged event with status=12 (download complete).
Using the Web Browser, you can access the page content via "Microsoft HTML Object Library" (HTML Document) � but I won't suggest it.

Hope this helps
0 Kudos
Message 2 of 4
(2,762 Views)
I am using an FTP or HTTP server. Exactly how do you allow OUTPUT for port
21 (ftp) and 80 (http). Is there a way to do this programmatically from
LabVIEW?

"Lab Viewer" wrote in message
news:506500000005000000D97F0000-1023576873000@exchange.ni.com...
Hi Neal,
First of all, it's important to know what type of server offers access
to that text file: FTP, HTTP or Data Socket.

If you are planning to use DS server, the solution is to configure
those firewalls to accept OUTPUT directed to DS port (I don't know the
number).
With FTP and HTTP servers it's easier because almost every computer
connected to the Internet has access to them. In case the access is
blocked by the firewall, again . the only solution is to configure it
properly (allow O
UTPUT for port 21 (ftp) and 80 (http)).

Regarding your application, as far as I remember, you can access FTP
and HTTP sources via Data Socket functions (setting the URL properly).
Anyway, if you want to do it via ActiveX, try to use "Microsoft
Internet Transfer Control", using GetChunk method after capturing the
StatusChanged event with status=12 (download complete).
Using the Web Browser, you can access the page content via "Microsoft
HTML Object Library" (HTML Document) . but I won't suggest it.

Hope this helps
0 Kudos
Message 3 of 4
(2,762 Views)
It's not possible to do it from LV because you may deal with different firewalls (either software or hardware) and each one has its own way to do it. Anway, why somebody connected to the Internet would block its FTP/HTTP connection ? (usually, a firewall is ment to restrict access FROM outside) If the answer is "just e-mail", you can try to obtain that text file via e-mail (sending a message to request it).

Let me know if you need details ...
0 Kudos
Message 4 of 4
(2,762 Views)