3 ms·
Portmap[1] lets you use names instead of port numbers. A server just grabs an arbitrary port number and then registers itself with the portmap server. When you
by cjensen 10y ago
Portmap[1] lets you use names instead of port numbers. A server just grabs an arbitrary port number and then registers itself with the portmap server. When you want to connect from a client, you first ask the portmap server for the port number.
[1] https://en.wikipedia.org/wiki/Portmap https://en.wikipedia.org/wiki/Portmap
- alcari 10y agoAs an alternative, predating Portmap by around 700 RFCs: tcpmux[0]. Everything connects to port 1 and asks for services by name. [0]: https://tools.ietf.org/html/rfc1078 https://tools.ietf.org/html/rfc1078
- phicoh 10y agoI have an experimental protocol that uses tcpmux. Works very well for that purpose. However, it sort of requires your service to be started by inetd. It doesn't work for services that want to manage their own listen queues. It also complicates firewalls. It makes it much harder to have rules that vary per service.