The node bounty script pays out to the account encoded in the hallmark. When your IP address changes, your node will stop working.
After an IP address change the node must be newly detected by the network. This can take several hours.
From this point, the online time is counted.
You must change the hallmark according to the new IP to get node bounties.
Thanks to everyone for the explanation. Would be great to have this in the form of an FAQ for future users.