how to control local host port no #441

Closed
opened 2026-01-29 16:39:44 +00:00 by claunia · 3 comments
Owner

Originally created by @som-nitjsr on GitHub (Dec 19, 2019).

Originally assigned to: @GregorBiswanger on GitHub.

  • Version:
    I am using latest with .net core 3.1
  • Target:

Steps to Reproduce:
In my app i am using openid connection authentication. my issue is app every time use different port my return url does not does not match. how can i use the fix url.

Originally created by @som-nitjsr on GitHub (Dec 19, 2019). Originally assigned to: @GregorBiswanger on GitHub. <!-- Please search existing issues to avoid creating duplicates. --> <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use latest version before report. --> * **Version**: I am using latest with .net core 3.1 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> <!-- What target are you building for? --> * **Target**: <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> Steps to Reproduce: In my app i am using openid connection authentication. my issue is app every time use different port my return url does not does not match. how can i use the fix url.
claunia added the question label 2026-01-29 16:39:44 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (Feb 7, 2020):

You need an additional configuration in the electron.manifest.json file with the key aspCoreBackendPort:

{
  "executable": "ElectronNET.WebApp",
  "splashscreen": {
    "imageFile": "/wwwroot/assets/img/about@2x.png"
  },
  "singleInstance": false,
  "aspCoreBackendPort": 8080, <--- Your custom Port for ASP.NET Backend
  "build": {
    "appId": "com.electronnetapidemos.app",
...

The application then runs automatically as a single instance. I hope you like it that way.

@GregorBiswanger commented on GitHub (Feb 7, 2020): You need an additional configuration in the **electron.manifest.json** file with the key **aspCoreBackendPort**: ``` { "executable": "ElectronNET.WebApp", "splashscreen": { "imageFile": "/wwwroot/assets/img/about@2x.png" }, "singleInstance": false, "aspCoreBackendPort": 8080, <--- Your custom Port for ASP.NET Backend "build": { "appId": "com.electronnetapidemos.app", ... ``` The application then runs automatically as a single instance. I hope you like it that way.
Author
Owner

@som-nitjsr commented on GitHub (Feb 13, 2020):

Thanks i will try.

@som-nitjsr commented on GitHub (Feb 13, 2020): Thanks i will try.
Author
Owner

@nazar322 commented on GitHub (Apr 16, 2024):

"aspCoreBackendPort": 8080, <--- Your custom Port for ASP.NET Backend
There is no such record in the default electron.manifest.json.
It would be great if there was a doc about all possible options in electron.manifest.json.

@nazar322 commented on GitHub (Apr 16, 2024): `"aspCoreBackendPort": 8080, <--- Your custom Port for ASP.NET Backend` There is no such record in the default `electron.manifest.json`. It would be great if there was a doc about all possible options in `electron.manifest.json`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#441