Exit Posted August 15, 2009 Share Posted August 15, 2009 (edited) 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 August 16, 2009 by forumer100 App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
Exit Posted August 16, 2009 Author Share Posted August 16, 2009 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. App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now