FTP not working on Java 7 on Windows 7 and VISTA when Windows Firewall is enabled
来源:互联网 发布:农业财政支出数据 编辑:程序博客网 时间:2024/06/05 19:18
Problem:
In FTP, before a file is transferred a PASV command must be sent. As soon the command is sent, the Windows Firewall closes the socket that sent it. This only happens if the firewall is turned on and Java 7 is used.
In FileCatalyst/Unlimi-Tech products an error message appears saying: "Could not load remote directory listing"
Products affected:
All FileCatalyst/Unlimi-Tech products
Solution 1:
You must disable Stateful FTP rules on the Windows Firewall. Open Command Line Prompt and type this line (without the quotes):
"netsh advfirewall set global StatefulFTP disable"
The problem is with Windows Firewall, Microsoft has been informed.
Solution 2:
You must disable IPv6 on your server and use only IPv4 stack, this will force all Windows clients to connect with the IPv4 stack and the problem will not appear.
Solution 3:
At runtime in the java startup command, add the following switch: -Djava.net.preferIPv4Stack=true
Solution 4:
Enable SSL Security (FTPS), Stateful Firewall inspection must be able to read the traffic which is not possible when FTPS is used.
External Links:
http://stackoverflow.com/questions/6990663/java-7-prevents-ftp-transfers-on-windows-vista-and-7-if-firewall-is-on-any-idea
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7077696
- FTP not working on Java 7 on Windows 7 and VISTA when Windows Firewall is enabled
- Idea编译器 Windows 7 sometimes breaks FTP connections on Java 7 if firewall is enabled.
- Install IIS 7 on Windows Vista and Windows 7
- Android OnSensorChanged() not working when screen lock is on
- Jacob Not working when running as service on Windows 2008 (win7)
- Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows
- Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows
- Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows
- Drag drop does not work on windows 7 and later
- Windows Vista On Demand
- Get gtk2hs working on windows
- Unable to start debugging on the web server. Debugging failed because integrated windows authentication is not enabled.
- The search path when DLL is loading on Windows
- Installing mysql on windows 7 and using ruby on it
- OPC AND DCOM CONFIGURATION ON WINDOWS 2008 AND WINDOWS 7
- Error 2503 and 2502 when installing/uninstalling on Windows 8
- Problems and solutions when run Jekyll on Windows
- Kernel32.dll and other error messages when you install Office 2000 products with Direct Memory Access (DMA) enabled on Windows 9
- android中关于百度地图的使用
- net-snmp移植
- 把用SQL语句int型整数转换成二进制数
- javascript 词法基础部分理论篇
- JAVA正则表达式
- FTP not working on Java 7 on Windows 7 and VISTA when Windows Firewall is enabled
- javascript 变量表达式和运算符
- 细节问题总结
- JDK动态代理
- C++中二进制、八进制、十六进制表示方法
- javascript 对象和数组理论篇
- 数据结构知识整理(三)——排序
- 写在集训后期的话
- HDU 3761 Jungle Outpost(二分+半平面交)