Skip to content

Commit 94c4cd8

Browse files
Merge pull request #334 from thecodejedi/master
#308 - Start process with listen port 8000 error.
2 parents 600bc1a + 3dda18a commit 94c4cd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ElectronNET.Host/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function startAspCoreBackend(electronPort) {
149149
startBackend(manifestJsonFile.aspCoreBackendPort)
150150
} else {
151151
// hostname needs to be localhost, otherwise Windows Firewall will be triggered.
152-
portscanner.findAPortNotInUse(8000, 65535, 'localhost', function (error, electronWebPort) {
152+
portscanner.findAPortNotInUse(electronPort + 1, 65535, 'localhost', function (error, electronWebPort) {
153153
startBackend(electronWebPort);
154154
});
155155
}

0 commit comments

Comments
 (0)