p.enthalabs

I Got Sick of Remembering Port Numbers

gregraiz.com · Read Story HN original

Comments

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 :)

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