Live data from Hacker News

I Got Sick of Remembering Port Numbers

gregraiz.com

11–20 of 171 posts

Re: I Got Sick of Remembering Port Numbers

#11
post #6

It's like someone should make a file... maybe in /etc ... and put short names for services in it... maybe it could be called /etc/services...

Sure, but they are running web-apps they've vibe-coded (hence the .vibe tld) and for that use-case of many web apps that I run in docker containers I use nginx-proxy [0]. All the container needs is a VIRTUAL_HOST environment variable with the domain and what my router needs is an address entry for the wildcard subdomains. I even have nginx-proxy on a internet-accessible staging server.

[0] https://github.com/nginx-proxy/nginx-proxy

Re: I Got Sick of Remembering Port Numbers

#12
post #4

Earlier quoted context omitted.

There is /etc/services to map port numbers to service names, and using getportbyname() to resolve port numbers.

DNS for /etc/hosts and now vibe.local for /etc/services. What will they think of next!

SVCB DNS records

Re: I Got Sick of Remembering Port Numbers

#17
This is a valid concern, certainly. I use kube for most things so it's not a problem, but my homeserver and its apps run on quadlets that I manage. In my case, I just added a README.md in the server account folder that each project's CLAUDE.md or whatever is configured to read. Then it selects a port and sticks that in the document and to be honest I have a few tens of services and it works. Haha, a direct replacement of machine for my own process.

Re: I Got Sick of Remembering Port Numbers

#20
post #7
post #6

It's like someone should make a file... maybe in /etc ... and put short names for services in it... maybe it could be called /etc/services...

And then they might code up some sort of service lookup tool thingy to use on the train wreck that is the modern web. $ getent services gopher gopher 70/tcp

Heck, maybe even `resolvectl service`?
Post reply on HN