nip.io allows you to do that by mapping any IP Address to a hostname using the following formats:
Without a name:
10.0.0.1.nip.iomaps to10.0.0.1
192-168-1-250.nip.iomaps to192.168.1.250
nip.io
Stop editing your etc/hosts file with custom hostname and IP address mappings.
https://nip.io/

Seonglae Cho