Server URLs?

How can I have a URL for my server instead of an IP? My friend (whose server I’m helping test) pointed this out to me.