sockets.tcp - redirect to file for iOS