In most cases this random kick-out or offline is caused by two devices trying to access the same camera by using the same app user name and password. Different app needs to has different HiKam app account.
For details refer to Camera ID, camera Password, User Name and Password, Account ID.