Servers need an address that doesn't change. The easiest and most reliable way is a DHCP reservation in your router's settings, so the router always gives the Pi the same IP.