License - How to do this? Two devices, iMac and Laptop and is mobile

I want to use two devices, iMac and a MacBookPro, which I will use also at another place.

How should I setup the license for that laptop so that I have no issue when my laptop is offline or connected at not my home network?

The license allows you to install on any two computers provided they will not both be in use at the same time. It shouldn’t matter what network the computers are attached to, as the license is tied to the unique hardware id of your computer’s lan adapter, not to the network id.