assuming you are using a desktop os, e.g windows/linux, put an entry in /etc/hosts, e.g. 192.168.0.x yourname
then you can use yourname:xxxx
This is the official technology community of Lemmy.ml for all news related to creation and use of technology, and to facilitate civil, meaningful discussion around it.
Ask in DM before posting product reviews or ads. All such posts otherwise are subject to removal.
Rules:
1: All Lemmy rules apply
2: Do not post low effort posts
3: NEVER post naziped*gore stuff
4: Always post article URLs or their archived version URLs as sources, NOT screenshots. Help the blind users.
5: personal rants of Big Tech CEOs like Elon Musk are unwelcome (does not include posts about their companies affecting wide range of people)
6: no advertisement posts unless verified as legitimate and non-exploitative/non-consumerist
7: crypto related posts, unless essential, are disallowed
assuming you are using a desktop os, e.g windows/linux, put an entry in /etc/hosts, e.g. 192.168.0.x yourname
then you can use yourname:xxxx
Thanks
You can configure many routers to act as DNS servers, then advertise themselves to client devices as a DNS server (with a secondary like 8.8.8.8 or whatever). Then you can just use the hostname of the device you want to access and as long as your client device is using your router for DNS it will resolve correctly.
How specifically to set this up depends on your networking equipment
You can edit the hosts file on your local device, but I would recommend you take a look at using the rpi for a pihole/ DNS server. Then you can edit the hosts file on the PI to make it so that any device on your network redirects with the custom name.
Hell if you want to have fun install nginx proxy manager then you can set up routing so that anything is easily accessible from inside you net ie: rpi/jellyfin or rpi/soju.
If youre interested in doing anything like that and youre stuck ill help with any questions. I setup docker containers with proxies all the time
Not sure if this helps, as I’m not 100% certain how I set this up (it was too long ago), but by giving my rpi a hostname I can simply use ‘pizero.local’ from my desktop machine. I don’t run a DNS server per se but maybe look into that kind of dhcp / dns option?