@dan_abramov Here is a more advanced version
where I generate stable unprivileged port number for server instances based on
string identifiers that need to run on the same machine:
https://github.com/bifravst/device-ui-server/blob/0c423026477f902067f4859a21c1f8327f869dce/src/portForDevice.ts#L4