Jump to content
Sign in to follow this  
Exit

[solved] FTP Firewall Problem. INetGet() is OK, IExplore.exe fails.

Recommended Posts

Exit

I'm using my FTP server as software update server. This is realized with the INetGet() function and works very well.

Now I wanted to distribute the software by sending the URL to the customers instead of a ZIP file.

Unfortunately, this method works only, if the "Windows firewall" is disabled on my server.

I have opened port 20 and 21, but no luck.

This is a little script to demonstrate the behavior.

$FTPname = "ftp://autoit@anonym.dyndns.org/AutoItTest.txt" ; altered to a non exsistend address
$LOCname = @TempDir & "\~AutoIt.txt"
$RC = InetGet($FTPname, $LOCname, 1)
If $RC = 0 Then Exit MsgBox(0, "FTP Test", "Server is down. Try later.", 30)
ShellExecuteWait($LOCname) ; browse the text file.
FileDelete($LOCname)
ShellExecuteWait("iexplore.exe", $FTPname)

Just let it run and you will see, that IEXPLORE.EXE will get a time out.

Belive me or not: If I disable the firewall, the browser shows the result like INETGET.

What can I define in my firewall to allow the browser to get the file?

TIA forumer100

Edited by forumer100

My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites
Exit

The browser tried to switch to passive mode and if sucessfull, the windows firewall refused the random ports.

The solution was to disable PASV in my FTP server.


My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
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
Sign in to follow this  

×