I have configured AWS EC2 instance to be a FTP servers(Passive Mode) and attached a Load balancer target group to the instances. The loadbalancer listener port is 21. The problem I face is the my cellular device is unable to create a data connection with the FTP server the connection times out after the PASV command although the server sends the response as available from the logs. This is not seen while using a wifi connection. Everything works smoothly when using filezilla on my laptop although the when using mobile hotspot a completely new error occurs(Added Below). I have checked the cellular FTP connection without loadbalancer and it works fine.
Status: Resolving address of ftp-loadbalancer-b66f394783ab4656.elb.us-east-1.amazonaws.com
Status: Connecting to [64:ff9b::3e5:5d75]:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: EPSV
Response: 229 Entering Extended Passive Mode (|||43735|).
Command: LIST
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Resolving address of ftp-loadbalancer-b66f394783ab4656.elb.us-east-1.amazonaws.com
Status: Connecting to [64:ff9b::3e5:5d75]:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: EPSV
Response: 229 Entering Extended Passive Mode (|||42066|).
Command: LIST
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Thanks