Live data from Hacker News

I Got Sick of Remembering Port Numbers

gregraiz.com

31–40 of 171 posts

Re: I Got Sick of Remembering Port Numbers

#34
post #7

Earlier quoted context omitted.

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

this is a nice idea, but idk why, in macos if i do `nc -l 127.0.0.1 gopher` and then try to open url " http://127.0.0.1:gopher/ " - safari does not open it, no requests visible in the `nc` output. also `curl -v http://127.0.0.1:gopher/ ` gives error message * URL rejected: Port number was not a decimal number between 0 and 65535 * Closing connection curl: (3) URL rejected: Port number was not a decimal number between…

> http://...:gopher

is it http or gopher? :)

Re: I Got Sick of Remembering Port Numbers

#35

I wonder why not use nginx and some local DNS settings to just serve all these local services under a new, local URL. Not too long ago I had a similar issue and solved with that.

I mean, that's essentially what he's recreating here it looks like

Re: I Got Sick of Remembering Port Numbers

#36

Earlier quoted context omitted.

why?

VITE typed on a T9 keyboard is 8483.

T9 is predictive and based on a dictionary and training.

If you type "8483" on T9, your phone may offer "THUD" or "TITE" or all three, as choices.

But with a normal telephone keypad, if you dial, e.g. "(800) 555-VITE" then you will always dial "8483".

https://en.wikipedia.org/wiki/Phoneword

Also, a service port is always qualified by its protocol. There are separate port namespaces for each IP protocol that uses ports. "8483" is not a service port, until you spell it out:

  8483/tcp
or

  8483/udp
or

  8483/sctp
or

  8483/dccp
etc.

A TCP stream, for example, consists of a tuple:

  src:port1 dst:port2

Re: I Got Sick of Remembering Port Numbers

#40
I use Cloudflare Tunnel so most of the products I build are exposed and listed there. I just add comments for those that aren't exposed (eg. browser extension dev port) to that file too. A single doc means coding agents know to look there and keep it updated too.
Post reply on HN