Closing a connection after sending an IP command



Where and how can I modify the configuration file to close the connection after sending the command.
This is required by some devices for correct operation when you press and hold. (Volume, channels, right, left, up, down …)
For example, satellite receivers Fortis