FTPClient Uploading File = SocketException: Connection reset

后端 未结 3 1122
终归单人心
终归单人心 2021-02-06 02:07

I\'m trying to upload a simple txt file via FTP using XAMPP and FileZilla.
I\'m using the Apache Commons Net 3.0.1 Library.
This is my code, very basic things:



        
3条回答
  •  离开以前
    2021-02-06 02:20

    Set:

    client.setUseEPSVwithIPv4( true );

    This works if you can't make changes to Window's firewall settings.

提交回复
热议问题