I have all of the connectors on my Gig Rack and then cables from the keyboards labelled precisely for this reason
I got caught out badly before a gig once, when I connected into the wrong ports on my laptop (and my Focusrite interface did not like USB3 so HAD to go into a USB 2 port). Cantabile 2 was a little quirky in certain aspects when it came to port handling and if the USB ports changed. Cantabile 3 is much better due to the physical/logical port separation.
So, I managed to totally screw the Cantabile show up as a result of trying to get things working (but not noticing that my USB Audio interface was in the USB 3 port it hate. I had no backup of the Cantabile files on the laptop (it was 60 miles away at home…).
I learnt a lot the hard way that night! I managed to get things reprogrammed just before show start, but, man, was I stressed!
So, ports are all labelled now, and I always carry a backup ; several in fact - on computer, on USB stick, images of the hard disk, etc.
I mention this as if you are new to using computers on stage, then it does pay to think ahead through the “what if” scenarios. Not trying to scare you off. I have not done a gig without a computer for years, but it does pay to make sure you can dig yourself out of trouble if it does strike.