ppareit / swiftp

FTP server for your android device.
http://ppareit.github.com/swiftp/
Other
739 stars 293 forks source link

Can't connect through IPv6 #53

Open Rudloff opened 9 years ago

Rudloff commented 9 years ago

My smartphone is connected through a VPN. When I try to access the FTP server with the VPN IPv4, everything works fine. But when I use the IPv6, I get a 502 error.

Here is the Filezilla log:

Status: Connecting to [2a00:5881:8100:100::5]:2121...
Status: Connection established, waiting for welcome message...
Response:   220 SwiFTP 2.10 ready
Command:    USER pierre
Response:   331 Send password
Command:    PASS *********
Response:   230 Access granted
Command:    SYST
Response:   215 UNIX Type: L8
Command:    FEAT
Response:   211-Features supported by FTP Server
Response:    UTF8
Response:    MDTM
Response:    MFMT
Response:   211 End
Command:    OPTS UTF8 ON
Response:   200 OPTS accepted
Status: Connected
Status: Retrieving directory listing...
Command:    PWD
Response:   257 "/"
Command:    TYPE I
Response:   200 Binary type set
Command:    EPSV
Response:   502 Command not recognized
Command:    EPRT |2|2a01:e35:8a04:870:5246:5dff:feb8:a42b|48257|
Response:   502 Command not recognized
Error:  Failed to retrieve directory listing
Vrihub commented 7 years ago

I'm not using IPv6, but I was getting the same kind of error (EPSV -> 502 Command not recognized) when trying to connect from my linux box using the lftp command-line client (other clients work fine with swiftp).

So maybe this is relevant: https://github.com/lavv17/lftp/issues/367 (though I'm still not sure if the bug is in swiftp, in lftp, or in the interaction of them)

Xavron commented 3 months ago

This can be closed. IPv6 is implemented in pull request https://github.com/ppareit/swiftp/pull/242