I have the following issue: when trying to transfer through FTP the connection closes automatically as soon as the screen turns off. The music keeps on playing afterwards.

When I wake up the phone again i need to deactivate server running and activate otherwise it will not continue.

iOS is Iphone SE with 11.0.3 and I use WinSCP or Directory Opus on Windows for FTP transfer.