简体   繁体   English

当 FileZilla 连接时,PhpStorm 无法连接到 FTP

[英]PhpStorm fails to connect to FTP while FileZilla connects

I am trying to setup FTP connection with my newly purchased domain.我正在尝试与我新购买的域建立 FTP 连接。 Apparently, this one brings problems with connection.显然,这会带来连接问题。 FileZilla connects well, but PhpStorm results to a FileZilla连接良好,但 PhpStorm 导致

FTP response 421 received.收到 FTP 响应 421。 Server closed connection服务器关闭连接

I have talked with my hosting service provider, they seem also to have no real clue as what could be the problem.我已经和我的托管服务提供商谈过,他们似乎也没有真正的线索,因为这可能是什么问题。 I have also checked most solutions available online like trying with Passive mode or Active mode, but still no success.我还检查了大多数在线可用的解决方案,例如尝试使用被动模式或主动模式,但仍然没有成功。

Any good suggestions will be welcomed.任何好的建议都会受到欢迎。

FTP 连接设置

I had the same problem.我有同样的问题。 Worked in FilleZilla, but not in phpStorm.在 FilleZilla 工作,但不在 phpStorm 工作。

To make it work, in the settings of my provider, I added my country to the whitelist.为了使它工作,在我的提供商的设置中,我将我的国家添加到白名单中。

为了使它工作,在我的提供商的设置中,我将我的国家添加到白名单

I finally got it working, the issues must have been from my hosting provider, talked to them and they changed the server where my website was stored.我终于让它工作了,问题一定是来自我的托管服务提供商,与他们交谈,他们更改了存储我网站的服务器。 I still dont know exactly what led to such a 421 response, because other projects worked fine with my IDE except for this specific one, which would work with FileZilla but refuse to work with PhpStorm, until my hosting provider made these changes....this one fixed my problem.我仍然不知道是什么导致了这样的 421 响应,因为其他项目在我的 IDE 上运行良好,除了这个特定的项目,它可以与 FileZilla 一起工作但拒绝与 PhpStorm 一起工作,直到我的托管服务提供商进行了这些更改......这个解决了我的问题。 I hope it gives a hint to someone else out there我希望它给那里的其他人一个提示

Try using FTPS instead of FTP.尝试使用 FTPS 而不是 FTP。 use explicit over TLS and enable Passive mode.在 TLS 上使用显式并启用被动模式。 It should be worked now现在应该可以工作了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM