All port forwarding requests are bind to random localhost ports only. What client writes to the left part of -R command is not used in socket binding process, but saved in forwarding database called "pseudodns". The SSH daemon is customized for this task. When the client tries to connect to such socket, the request is "rewrote" back to real socket port number. Only TCP forwarding is possible, UNIX socket ("streaming") forwarding is not supported.