frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

I Got Sick of Remembering Port Numbers

https://gregraiz.com/blog/local-vibe/
40•graiz•2d ago

Comments

yunruse•2d ago
This project is essentially "give me some metadata & a command which takes env $PORT, and I'll handle the rest". Which is neat!

I am also sick of handling port numbers - I end up allocating them on a schema to different services, so for testing I can spool any VM/service combination and avoid crossover. But if I want the same service twice, ah...

It always fascinated me that ports don't have any kind of textual resolver, so you can bind to `:1234` and also say "please also accept `:foobar`". But that would itself require some kind of "port resolver" on a device, and that's another service to break and fix :)

winstonwinston•2d ago
There is /etc/services to map port numbers to service names, and using getportbyname() to resolve port numbers.
axus•1h ago
DNS for /etc/hosts and now vibe.local for /etc/services. What will they think of next!
miyuru•50m ago
SVCB DNS records
simoncion•15m ago

  getservbyname(3)
kasperni•1h ago
Not the same, but omeone recently posted this "port" tool here on HN: https://github.com/raskrebs/sonar
thunderbong•48m ago
HN Thread

https://news.ycombinator.com/item?id=47452515

zdw•1h ago
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...
tolciho•1h ago
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
otabdeveloper4•35m ago
Heck, maybe even `resolvectl service`?
TomK32•52m ago
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

pyreal•1h ago
I created something similar to help me spin up complex apps in multiple worktrees with full port orchestration: https://outport.dev/
hahahacorn•1h ago
Bind to Port 0
CGamesPlay•52m ago
I've built this twice before. The main problem that I hit is that the AI agents suck at the process lifecycle management: leaving processes alive, starting the same daemon multiple times, etc.

From a brief glance over the code I like the approaches I see. Using the `/etc/resolver/` mechanism is a new trick to me!

The interesting part to me isn't the port numbers, it's the automatic service start/stop, including idle route shutdown.

elchief•48m ago
I'm slightly annoyed that vite's default port isn't 8483
chrisweekly•48m ago
why?
kseistrup•36m ago
VITE typed on a T9 keyboard is 8483.
nektro•46m ago
i have something like this too, currently a 60 line nodejs file
arjie•41m ago
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.
system2•35m ago
It is funny, I just built something like this last week and named it "Network". Additionally it scans for any type of data packages arriving at the SonicWall and sees if they are approved by me or not. I am paranoid after using TP Link at home like a dumbass.
isodude•18m ago
Why not resolve everything with UNIX sockets instead, that way you can have them named and scoped instead, hiding behind port 443, since it's mosly HTTP anyway.
tdeck•13m ago
Does this work in the browser? How will paths to different resources used by the web app work?
magicalhippo•15m ago
I know it's mixing of layers, but I can't help but feel the IPv6 transition missed the boat when they didn't just get rid of ports in the process. They've changed so much else anyway.

Want to run another webserver instance or whatever on your computer? Get the OS to allocate a new IP for it. Ports be damned.

Could be implemented in a backwards compatible way by requiring all IPv6 TCP/UDP traffic to use a fixed port number.

tdeck•14m ago
What is the benefit of using HTTPS for this particular use case?
hotfixguru•7m ago
Vercel’s portless is a great alternative, but unfortunately it doesn’t work well with oauth flows. I’ve built portmap[0] to solve that. Also comes with skills which makes it work really great with coding agents (instructions in the readme).

[0] https://github.com/JonasKs/portmap

How Mark Klein told the EFF about Room 641A [book excerpt]

https://thereader.mitpress.mit.edu/the-whistleblower-who-uncovered-the-nsas-big-brother-machine/
499•the-mitr•12h ago•161 comments

For Linux kernel vulnerabilities, there is no heads-up to distributions

https://www.openwall.com/lists/oss-security/2026/04/30/10
431•ori_b•12h ago•329 comments

Opus 4.7 knows the real Kelsey

https://www.theargumentmag.com/p/i-can-never-talk-to-an-ai-anonymously
240•ilamont•1d ago•129 comments

I Got Sick of Remembering Port Numbers

https://gregraiz.com/blog/local-vibe/
41•graiz•2d ago•27 comments

Shai-Hulud Themed Malware Found in the PyTorch Lightning AI Training Library

https://semgrep.dev/blog/2026/malicious-dependency-in-pytorch-lightning-used-for-ai-training/
354•j12y•13h ago•123 comments

Can I disable all data collection from my vehicle?

https://rivian.com/support/article/can-i-disable-all-data-collection-from-my-vehicle
562•Cider9986•8h ago•219 comments

CPanel and WHM Authentication Bypass – CVE-2026-41940

https://labs.watchtowr.com/the-internet-is-falling-down-falling-down-falling-down-cpanel-whm-auth...
68•zikani_03•6h ago•19 comments

I built a Game Boy emulator in F#

https://nickkossolapov.github.io/fame-boy/building-a-game-boy-emulator-in-fsharp/
243•elvis70•12h ago•52 comments

Claude Code refuses requests or charges extra if your commits mention "OpenClaw"

https://twitter.com/theo/status/2049645973350363168
1041•elmean•14h ago•580 comments

Vercel’s pricing page

https://theupsellgame.com/
157•bartoindahouse•9h ago•42 comments

Roboticist-Turned-Teacher Built a Life-Size Replica of Eniac

https://spectrum.ieee.org/roboticist-turned-teacher-eniac-replica
6•oldnetguy•1d ago•3 comments

How an oil refinery works

https://www.construction-physics.com/p/how-an-oil-refinery-works
368•chmaynard•15h ago•114 comments

Reverse Engineering SimTower

https://phulin.me/blog/simtower
162•patrickhulin•2d ago•28 comments

Show HN: Winpodx – run Windows apps on Linux as native windows

https://github.com/kernalix7/winpodx
51•kernalix7•2h ago•25 comments

You can beat the binary search

https://lemire.me/blog/2026/04/27/you-can-beat-the-binary-search/
282•vok•3d ago•129 comments

Maladaptive Frugality

https://herbertlui.net/maladaptive-frugality/
50•herbertl•2d ago•40 comments

New mechanical panoramic film camera from Jeff Bridges

https://wideluxx.com
110•armadsen•2d ago•53 comments

Snowball Earth may hide a far stranger climate cycle than anyone expected

https://sciencex.com/news/2026-04-snowball-earth-stranger-climate.html
62•wglb•6h ago•8 comments

Belgium stops decommissioning nuclear power plants

https://dpa-international.com/general-news/urn:newsml:dpa.com:20090101:260430-930-14717/
778•mpweiher•16h ago•753 comments

Honker – Durable queues, streams, pub/sub, and cron scheduler in a SQLite file

https://honker.dev/
191•ferriswil•14h ago•52 comments

OpenWarp

https://openwarp.zerx.dev
54•zero-lab•3h ago•55 comments

Full-Text Search with DuckDB

https://peterdohertys.website/blog-posts/full-text-search-w-duckdb.html
109•ethagnawl•11h ago•27 comments

I aggregated 28 US Government auction sites into one search

https://bidprowl.com
267•scarsam•16h ago•75 comments

Does Postgres Scale?

https://www.dbos.dev/blog/benchmarking-workflow-execution-scalability-on-postgres
109•KraftyOne•10h ago•54 comments

10Gb/s Ethernet: what I did to get it working in my home

https://www.gilesthomas.com/2026/04/10g-ethernet-what-i-did
173•gpjt•1d ago•123 comments

The Church Rock Uranium Mill Spill

https://en.wikipedia.org/wiki/Church_Rock_uranium_mill_spill
76•Sir_Twist•2d ago•5 comments

The Hearts of the Super Nintendo

https://fabiensanglard.net/snes_hearts/
12•droppedasbaby•3h ago•2 comments

Follow-up to Carrot disclosure: Forgejo

https://dustri.org/b/follow-up-to-carrot-disclosure-forgejo.html
55•homebrewer•9h ago•8 comments

Spain's parliament will act against massive IP blockages by LaLiga

https://www.democrata.es/en/politics/congress-and-senate/congress-will-act-against-massive-ip-blo...
437•akyuu•13h ago•181 comments

A Milestone in Formalization: The Sphere Packing Problem in Dimension 8

https://www.alphaxiv.org/abs/2604.23468
24•measurablefunc•2d ago•0 comments