Set a timeout [w]

cryptcat

cryptcat -k {{password}} -w {{timeout_in_seconds}} {{ip_address}} {{port}}

click the source code to copy install cryptcat on any operating system with command-not-found.com