Based on the Simple TCP Proxy by kfox at https://gist.github.com/kfox/2313683
With this you spawn a websocket server on a server to allow SSH to a remote machine. When a client is connected it will be available on 9022 of the server. Every new client connected will be on port proceeding 9022. So if a server is already on 9022 the next one will be on 9023 and the next on 9024 and so on. Ports are released 24 hours after disconnection to be used again later.
Server machine run :