The remote server returned an error: 227 Entering Passive Mode (500 oops vs_utility_recv_peek: no data)

 ̄綄美尐妖づ 提交于 2019-11-30 14:03:13

The issue is now resolved. It turned out to be Kaspersky's built-in firewall that was blocking the connection. It's annoying that it didn't present me with a warning when I tried to connect, but reassuring to know my PC is safe.

The clue was in the detail of the 227 return:

10051 – A socket operation was attempted to an unreachable network

Also, for anyone reaching this via Google etc, the remote server was configured to only allow Passive connections, which is why I was getting the 500 syntax error. Studying a Wire capture when downloading a file revealed that Filezilla actually reverts to Passive mode automatically if Active is selected but fails.

The code in my original post works fine now.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!