1. Goto Adguard Control Panel
Navigate to Filters → DNS rewrites

2. Add New Entry
Standard practice for home networks is to use .lan, .home, or .internal.
Do not use
.localfor suffix.

3. Clear your device’s DNS Cache
Simply disable/enable the wi-fi network on your computer.
If you have ports, you need to use the port on your domain name.
E.g. http://homerserver.lan:34