As others have written, your best option is to configure your router to always give the same IP address to your printer via DHCP. The router vendors have different names for this. Sometimes referred to as DHCP Reservation, sometimes referred to as Manually Assigned DHCP address.