FTP not working on Java 7 on Windows 7 and VISTA when Windows Firewall is enabled

1 篇文章 0 订阅
1 篇文章 0 订阅

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值