@Bo Welcome to Microsoft Q&A forum!
It looks like to open the viewer always require connecting to a device in real time. Is that ture?
AFAIK, device should be connected based on the mode you are using.
Please see Usage Info for more details.
Also, please check the troubleshooting guide Azure Kinect Viewer fails to open and see if it helps.