52

I have a bunch of services running on my LAN, mostly from a single Debian machine. I access them at URLs like http://devicename.lan:portnumber. I would like to change to http://servicename.devicename.lan.

How it works now: The router (openwrt) sets a static IP per device and the port number is selected by the application or system unit running it.

What is the absolute simplest way to accomplish this? I don't mind if it is managed by the router or by the server machine itself. Hoping for something that can be configured with a text file or web interface or other basic mathod.

These sevices are private, just for me and I have no plans to ever access them externally. I have so far avoided any certificates or SSL or other stuff. I don't use docker and would rather not get into it right now. I like my domain name setup how it is with fake local domains.

Hoping this could be possible without making a whole project out of it.

you are viewing a single comment's thread
view the rest of the comments
[-] Danitos@reddthat.com 13 points 3 days ago* (last edited 2 days ago)

I have that exact setup. Let's suppose you want to use layzer.lan as your domain. The way I did it:

  1. Make a DNS record that maps *.layzer.lan to your private IP (let's say it is 192.168.0.10). You can do this by either manually editing your local DNS resolver config file, or hosting a DNS server and adding a a new entry. I did the later, and chose AdGuard for that. Either option will make your PC underestand that going to any subdomain *.layzer.lan means going to 192.168.0.10.

  2. Use a reverse proxy. I use nginx-proxy-manager, and added a proxy host for each service you want to access with the link. For example, for my Immich server that is running in port 30041, I added a proxy host such that http://immich.layzer.lan/ takes you to http://192.168.0.10:30041/. Ports 80 and 443 have to be free for nginx to take. You can also add https support from here, and it's very easy to do if you have bough a real domain.

Offtopic: I just noticed that on my Lemmy Android client you appear as laserjet, but on web you appear as layzerjeyt lol. Any idea why?

[-] laserjet@lemmy.dbzer0.com 4 points 3 days ago* (last edited 3 days ago)

Offtopic

on dbz there is a setting to change your display name. not every instance enabled that option. but it's how you see people with emojis, punctuation and stuff in their display names. not every client displays it. like some of the android clients don't show avatars either. My handle is @laserjet@lemmy.dbzer0.com

[-] HolidayGreed@sh.itjust.works 3 points 3 days ago* (last edited 1 day ago)
[-] Danitos@reddthat.com 2 points 2 days ago

Yeap, that's pretty much it.

Note that the link you shared has a Google's user tracker (the part after the ?is links to your identity to create a profile of who you connect with). The clean version is https://youtu.be/qlcVx-k-02E

this post was submitted on 12 Jul 2026
52 points (94.8% liked)

Selfhosted

60693 readers
408 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS