Proxy TCP through nginx to a FTP server on a fly machine

Is your app using a shared IPv4? If that’s the case, only HTTP over ports 80 and 443 are supported.

If you need to expose port 2121, then you’ll need to use a dedicated IPv4 or IPv6.