I have 2 local applications which communicate over TCP/IP using hard-coded (fixed) port. This works ok when there is only 1 user on a workstation. However, the second user of the workstation can't use the applications because the port is occupied by the applications of the first user.
If it's possible, then how to set per-user policy to forward the port for just these 2 applications? Something like a rule "if application A binds to localhost port N then bind it to localhost port N+1" and "if application B connects to localhost port N then connect it to localhost port N+1".
Administrative or programmatic solution is ok. The OS is Windows Server 2012 R2.