When you use the iLok manager tool it will show you what licenses you have and where they are.
This is from memory, as I haven't done it in a while.
As I recall, choices for any license are locked to a computer (I don't think all products support this) or in the iLok cloud (the music software will check the cloud whenever you use it) or on an iLok dongle.
Additionally, as i recall iLok has an optional theft coverage mode, which uses the dongle but requires the dongle to connect to their server and be re-authorized every x days.
Within the license manager, you can move licenses around.
If they're already on the dongle, all you need is to have the iLok driver (and maybe license manager) on any computer you're using.
Just plug the dongle into the computer you're using at the moment.
That's the easiest way for, for example, gigging people who may frequently use different computers.
If you haven't registered the dongle with iLok yet, you won't be able to move your licenses onto (or off of) it.
I've been using iLok with dongle or cloud for more than 15 years and it has just worked.
Quick look at their site gives a help page: https://help.ilok.com/ilm_overview.html