Hi,

Apologies in advance as I am very new to software / web development.

I am using a remote windows PC (W11) within the local network as a server. It hosts multiple docker containers using docker compose, for a range of different web interfaces and APIs.

I want to change the domain of this pc, so rather than accessing it on the network by its ip, I can give it a domain name like remote.local . I thought (I think incorrectly) that I could just rename the PC, and it would then be accessible by its name or name.local on the network as long as it has network discovery enabled.

The above approach does work, and it is accessible, but it is massively inconsistent, sometimes it just drops off after 5/10 minutes of booting up and is then only accessible by IP and not name, and sometimes you can only connect by PC name if you are wired into the network via Ethernet cable, and not on the Wi-Fi…

Is there a better way of obtaining a nice domain name on the LAN, or am I missing something with this approach?

Thanks!