Our custom windows application listens on port 5000. After a regular reboot, our application could no longer listen on port 5000, since lsass.exe (Local Security Authentication Server) wich runs as a Windows Service already started listening on 5000. Is there a way to instruct lsass.exe not to use port 5000? Are there any other alternatives?
Your only chance is disabling the SSDP service on the server. Note that you will lose functionality such as UPnP if you do this.
Otherwise, your only other option is to reconfigure your application to use another port.