There are quite a few ways to achieve this.
First, many DHCP servers will hand out the same IP to the same device, even if it has been switched off for a while (and most certainly if the current DHCP lease has not expired).
You may want to make sure in the settings of your DHCP server (usually your router) that you have enough addresses in your pool, and possibly increase lease duration if it’s something you can change.
Of your current DHCP server does not cooperate, you may want to switch to another device (though it needs to be permanently on and connected to the network).
Of course, you could do static DHCP assignments if the DHCP server allows it.
Otherwise you can use static IP addresses (make sure you take those addresses out of the DHCP pool of course).
All this would help having the same IP.
Alternatively, you could use names which resolve to the dynamic IP. There are several methods to do that, depending on the combination of devices.
One option is to use mDNS / DNS-SD. You can advertise a name like rpi.local
from the Pi and then use that name from other computers. You could use the dns-sd
tool on the Pi to do so. Some distributions may actually already advertise the host name that way.
There are also alternatives based on uPnP/SSDP, Windows/SMB, and probably a few others.
Named URLs on Local Network