We will mainly see how to get the printer IP from OS level from your Windows 10 or 8.1 laptop and desktop. Therefore, whenever the printer or the DHCP server (Could be your Internet router) restarts, the IP of the printer will remain same.
It is always recommended to have a static IP for a printer, so it will have an IP permanently.