mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Releted To Port #198
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 @HirenPatelhv on GitHub (Jul 25, 2018).
Originally assigned to: @GregorBiswanger on GitHub.
Each time application is start using different port on every plateforn, so it's very difficult in api authentication and for CORS.
@GregorBiswanger commented on GitHub (Jul 25, 2018):
Do you want access from a external desktop application?
For internal access, you need the BridgeSettings.WebPort-Property:
string path = $"http://localhost:{BridgeSettings.WebPort}/Home/FooBar"@HirenPatelhv commented on GitHub (Jul 26, 2018):
I Want to change AspCoreBackend port and fixed it to some static port.So Everytime it run from fix port ie,Prot : 8081
@GregorBiswanger commented on GitHub (Jul 26, 2018):
The default Port is 8000... is this not available, we search automatically the next open port to upper...
Do you need a other solution? I can add this as a feature request... otherwise all pull request are very welcome :)
@HirenPatelhv commented on GitHub (Jul 27, 2018):
Yes , I want other solution ,Can you provide a way to fixed it to some static port for all platform (eg. Windows, Mac-OS, Linux) and that port is given by me.
I've developed an app using .NET Core and Electron.NET, also developed one API in .NET Core.
When I call API from it , Its give an error about "Cross-Origin", so i need to register an IP Address and Port in that API, for that i want static port.
@HirenPatelhv commented on GitHub (Jul 28, 2018):
How much time you will take for this solution if you do this ?
@HirenPatelhv commented on GitHub (Jul 30, 2018):
Hi @GregorBiswanger , Your Answer is very important for me.please help me to solve this issue.
@GregorBiswanger commented on GitHub (Jul 30, 2018):
I think in three weeks.. sorry...
@HirenPatelhv commented on GitHub (Jul 31, 2018):
thanks @GregorBiswanger , I'll wait for this feature...
@HirenPatelhv commented on GitHub (Aug 20, 2018):
Hi @GregorBiswanger , What is the status of this Feature.
@HirenPatelhv commented on GitHub (Sep 26, 2018):
Hi @GregorBiswanger ...
@HirenPatelhv commented on GitHub (Oct 27, 2018):
Hi @GregorBiswanger , I'm still waiting for this feature.
@HirenPatelhv commented on GitHub (Dec 25, 2018):
Hi @GregorBiswanger Have you add this feature...
@JimmyTheJ commented on GitHub (Dec 26, 2018):
Hi @HirenPatelhv I have pushed a fix for this in my fork of this repo. I don't know if it will ever get picked up by the main repository though. If you want help getting it working I can do that.
@robertmuehsig commented on GitHub (Dec 28, 2018):
@JimmyTheJ We are pretty "bad" regarding accepting PRs or answer to questions, BUT if you would like to send a PR I try to convince my buddy @GregorBiswanger to check it.
Thanks for your help!
@JimmyTheJ commented on GitHub (Dec 28, 2018):
Thanks @robertmuehsig. I put in a pull request with my changes. They also include a fix for the issue where if your assembly name is different from your executable name it won't work. I don't think the code for that fix is the most robust I've ever written though, you or @GregorBiswanger might be able to tweak it to work better.
The static port option doesn't have javascript error checking at the moment either so if the port is in use it will yell at you with some javascript errors, but until there is a really foolproof way to deal with that issue I figured I'd leave it as it indicates (at least to the developer) that you have either multiple instances of the software running still or something else is using your port.
@GregorBiswanger commented on GitHub (May 22, 2019):
Is the feature still needed?
@HirenPatelhv commented on GitHub (May 29, 2019):
Yes @GregorBiswanger , still I waiting for this feature
@GregorBiswanger commented on GitHub (Jul 28, 2019):
Hi @HirenPatelhv,
finally I have managed to implement your feature request. You now 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.
The feature is available with the next update 5.22.14, which will be published as soon as possible.
@enzosagretti commented on GitHub (Mar 15, 2021):
Hi! Thanks for all Gregor! It´s is possible to disable ASP port. I don´t want that user can acces from browser outside electron... thanks!