Unexpected firewall warnings #229

Closed
opened 2026-01-29 16:34:18 +00:00 by claunia · 4 comments
Owner

Originally created by @torman119 on GitHub (Nov 9, 2018).

Originally assigned to: @robertmuehsig, @GregorBiswanger on GitHub.

When we start the final electron app we get 2 firewall warnings popping up (running on windows 10).
For instance when building and running the Electron.Net sample music player, we get a firewall warning for "ElectronNET.Host" and one for "myelectronmusicplayer.exe".
Does anybody know why we get these warnings? Why do we get 2 of them? How can we avoid them for our users?

Originally created by @torman119 on GitHub (Nov 9, 2018). Originally assigned to: @robertmuehsig, @GregorBiswanger on GitHub. When we start the final electron app we get 2 firewall warnings popping up (running on windows 10). For instance when building and running the Electron.Net sample music player, we get a firewall warning for "ElectronNET.Host" and one for "myelectronmusicplayer.exe". Does anybody know why we get these warnings? Why do we get 2 of them? How can we avoid them for our users?
Author
Owner

@ctrl-d commented on GitHub (Dec 5, 2018):

Had same issue & stopped looking into it becouse of that

@ctrl-d commented on GitHub (Dec 5, 2018): Had same issue & stopped looking into it becouse of that
Author
Owner

@RogerDodger123 commented on GitHub (Dec 5, 2018):

I have solved the firewall prompt when it comes to the api. This was done by just resetting the bind:

WebHost.CreateDefaultBuilder(args)
                .UseElectron(args)
                .UseUrls($"http://localhost:{BridgeSettings.WebPort}")
                .UseStartup<Startup>();

but the issue lies here:
5a676cb76a/ElectronNET.API/WebHostBuilderExtensions.cs (L34)

The api is being bound to 0.0.0.0. Which is not good as this remotely exposes the API as is broadcast on all addresses.

Not sure how to resolve the other prompt that is for the electron exe apposed to the api. Something must be getting bound to another non local address

@RogerDodger123 commented on GitHub (Dec 5, 2018): I have solved the firewall prompt when it comes to the api. This was done by just resetting the bind: ``` WebHost.CreateDefaultBuilder(args) .UseElectron(args) .UseUrls($"http://localhost:{BridgeSettings.WebPort}") .UseStartup<Startup>(); ``` but the issue lies here: https://github.com/ElectronNET/Electron.NET/blob/5a676cb76aee7069cfe15fd09aca2c52e5498447/ElectronNET.API/WebHostBuilderExtensions.cs#L34 The api is being bound to `0.0.0.0`. Which is not good as this remotely exposes the API as is broadcast on all addresses. Not sure how to resolve the other prompt that is for the electron exe apposed to the api. Something must be getting bound to another non local address
Author
Owner

@robertmuehsig commented on GitHub (Dec 28, 2018):

Mh - would " .UseUrls("http://localhost:" + BridgeSettings.WebPort);" trigger the same Firewall Warning? @RogerDodger123 ?

@robertmuehsig commented on GitHub (Dec 28, 2018): Mh - would " .UseUrls("http://localhost:" + BridgeSettings.WebPort);" trigger the same Firewall Warning? @RogerDodger123 ?
Author
Owner

@robertmuehsig commented on GitHub (Jan 2, 2019):

This should be fixed in the next update.

@robertmuehsig commented on GitHub (Jan 2, 2019): This should be fixed in the next update.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#229