无法连接到 ftp 服务器 java
我应该能够成功地向/从 FTP 服务器发送和接收文件。
但后来,代码中没有发生任何变化,我开始得到这个:
错误:java.net.ConnectException:连接超时:连接
我正在做的是:
FTPClient ftp = new FTPClient();
ftp.connect( IPADDRESS of FTP server);
connect()
正在给出此执行。我不明白其原因。
I should be able to successfully send and receive file to/from FTP server.
But then, no changes occurred in the code and I started getting this :
Error: java.net.ConnectException: Connection timed out: connect
What I am doing is:
FTPClient ftp = new FTPClient();
ftp.connect( IPADDRESS of FTP server);
connect()
is giving this execption. I am not understanding the cause for it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该错误消息告诉您操作系统尝试连接到服务器超时。这通常意味着:
The error message is telling you that the OS's attempt to connect to the server timed out. This typically means that:
来源:JavaDoc。
Source: JavaDoc.