use Electron Port as base

This commit is contained in:
Markus Hoffmann
2019-11-02 13:31:18 +01:00
parent 7f92ffa20e
commit 3dda18ac9a

View File

@@ -149,7 +149,7 @@ function startAspCoreBackend(electronPort) {
startBackend(manifestJsonFile.aspCoreBackendPort)
} else {
// hostname needs to be localhost, otherwise Windows Firewall will be triggered.
portscanner.findAPortNotInUse(8000, 65535, 'localhost', function (error, electronWebPort) {
portscanner.findAPortNotInUse(electronPort + 1, 65535, 'localhost', function (error, electronWebPort) {
startBackend(electronWebPort);
});
}