mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Configurable Default Electron Port #589
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aarong-av on GitHub (Nov 11, 2020).
Originally assigned to: @GregorBiswanger on GitHub.
In many environments developers are not permitted to find available port. We must use specified ports allotted. Can we change the main.js file to include the following (~ line 66):
This will allow users to explicitly set the port just as you can do with the aspNetCore port.
@GregorBiswanger commented on GitHub (Nov 11, 2020):
You need an additional configuration in the electron.manifest.json file with the key aspCoreBackendPort:
The application then runs automatically as a single instance. I hope you like it that way.
@aarong-av commented on GitHub (Nov 11, 2020):
I have the aspCoreBackendPort accounted for. I need the electronPort changed from its default of 8000 and then searching for whatever is available if 8000 is taken.
Ultimately I need the electron port to behave exactly like what was already done with aspCoreBackendPort.
Thanks for the quick reply!
@aarong-av commented on GitHub (Nov 11, 2020):
Thanks for putting it on a milestone. I have a local branch. I don’t think I have permission to push.
Are there any other steps to implementing this other than what I have above?
Also how can I workaround this for now?
@GregorBiswanger commented on GitHub (Nov 11, 2020):
In this video I show, how you can work with the repository:
https://youtu.be/Po-saU_Z6Ws
Your pull request is very welcome to us :)
@aarong-av commented on GitHub (Nov 11, 2020):
I put in the PR. Let me know if it is wrong.
@skarin commented on GitHub (Nov 11, 2020):
I'd love to see this get In ASAP. Low risk, big impact. Thanks guys!
@GregorBiswanger commented on GitHub (Nov 11, 2020):
@skarin At the moment I'm still a bit busy - I don't think I'll have time for Electron until December - but a lot will happen that really rocks!
@aarong-av commented on GitHub (Nov 11, 2020):
Is there some guidance on the electron.manifest.json “files” section? I think I can work around this problem by making my own main.js but I can’t find any docs on how it works and copying an example ElectronHostHook does seem to overwrite the main.js.
@nazar322 commented on GitHub (Apr 16, 2024):
So is there a way to set a default electron port in 23.6.1?
@nazar322 commented on GitHub (Apr 16, 2024):
"electronPort": 7777Electron.NET needs a wiki on
electron.manifest.json