Cannot administer embedded systems due to blocked ports

Hello,

Have you noticed, that it somehow “inherits” commandline options?

I have two different shotcuts to start Brave. One has “–explicitly-allowed-ports” command line parameter and the other does not.

If I start Brave first time using shortcut having the parameter, it works right. If I first start Brave from the other shortcut, it does not work even if I start a new Brave instance using the shortcut having this parameter.

Is the trouble somehow related to this?

Would love to hear from the OP to see if any progress has been made there.

But until then, @Tilator, I don’t see this behavior myself. In the two instances you describe, does the ‘Command Line’ value in brave://version look the same for both or do you see the expected differences there?

I wonder if you have this enabled:
image

Shortcut 1 has command line like this: “C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe”

The other shortcut has this: “C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe” --explicitly-allowed-ports=10080

Behavior is as I described above. If I open Brave using the first shortcut, port 10080 is not allowed even if I start an other instance using second shortcut.

But if I open first instance using second shortcut, port 10080 is allowed even for a second instance opened using the first shortcut.

Are you saying you open the 2nd instance (using the 2nd shortcut) while the other one is still running? Or are you first closing the first one?

Of course. Second instance is not second if there were not first still running.

Here is output of brave:version from the first instance started from shortcut without command line parameter:


|Brave|1.41.100 Chromium: 103.0.5060.134 (Virallinen koontiversio) (64-bittinen)|
|Päivitetty versio|8ec6fce403b3feb0869b0732eda8bd95011d333c-refs/branch-heads/5060@{#1262}|
|Käyttöjärjestelmä|Windows 11 Version 21H2 (Build 22000.795)|
|JavaScript|V8 10.3.174.20|
|User agent|Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36|
|Komentorivi|“C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe” --disable-client-side-phishing-detection --disable-domain-reliability --enable-dom-distiller --component-updater=url-source=https:go-updater.brave.com/extensions --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --sync-url=https:sync-v2.brave.com/v2 --lso-url=https://no-thanks.invalid --variations-server-url=https:variations.brave.com/seed --variations-insecure-server-url=https:variations.brave.com/seed --flag-switches-begin --flag-switches-end|
|Suoritettavan tiedoston polku|C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe|
|Profiilin polku|C:\Users\Harri\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default|
|Aktiiviset muunnelmat|AdRewardsStudy:NextPaymentDay
AdServingStudy:DefaultAdNotificationsPerHour=10/MaximumAdNotificationsPerDay=100/MaximumInlineContentAdsPerHour=12/MaximumInlineContentAdsPerDay=60/AdServingVersion=1
BraveAds.UserActivityStudy:Triggers=NTPSI/TimeWindow=15m/Threshold=0.0/IdleTimeThreshold=5s
BraveDebounceStudy:Enabled
ConversionsStudy:NewDefaultPattern
Default1pBlockingStudy:Disabled
DisableReduceLanguage:Enabled
EphemeralStorageStudy:Enabled
ExtendedVariationsSafeMode5:SignalAndWriteViaFileUtil5
FirstPartyEphemeralDomainBlockStudy:Enabled
ForceDisableBlinkFeatures:Enabled
NativeCosmeticFilteringStudy:Enabled
PartitionBlinkMemoryCacheStudy:Enabled
PartitionConnectionsByNetworkIsolationKeyStudy:Enabled
PermissionLifetimeReleaseStudy:Enabled
RequestAdsEnabledApiStudy:Enabled
SpeedreaderReleaseStudy:Enabled|


Here from the second one started with command line parameter --explicitly-allowed-ports=10080:


|Brave|1.41.100 Chromium: 103.0.5060.134 (Virallinen koontiversio) (64-bittinen)|
|Päivitetty versio|8ec6fce403b3feb0869b0732eda8bd95011d333c-refs/branch-heads/5060@{#1262}|
|Käyttöjärjestelmä|Windows 11 Version 21H2 (Build 22000.795)|
|JavaScript|V8 10.3.174.20|
|User agent|Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36|
|Komentorivi|“C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe” --disable-client-side-phishing-detection --disable-domain-reliability --enable-dom-distiller --component-updater=url-source=https:go-updater.brave.com/extensions --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --sync-url=https:sync-v2.brave.com/v2 --lso-url=https://no-thanks.invalid --variations-server-url=https:variations.brave.com/seed --variations-insecure-server-url=https:variations.brave.com/seed --flag-switches-begin --flag-switches-end|
|Suoritettavan tiedoston polku|C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe|
|Profiilin polku|C:\Users\Harri\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default|
|Aktiiviset muunnelmat|AdRewardsStudy:NextPaymentDay
AdServingStudy:DefaultAdNotificationsPerHour=10/MaximumAdNotificationsPerDay=100/MaximumInlineContentAdsPerHour=12/MaximumInlineContentAdsPerDay=60/AdServingVersion=1
BraveAds.UserActivityStudy:Triggers=NTPSI/TimeWindow=15m/Threshold=0.0/IdleTimeThreshold=5s
BraveDebounceStudy:Enabled
ConversionsStudy:NewDefaultPattern
Default1pBlockingStudy:Disabled
DisableReduceLanguage:Enabled
EphemeralStorageStudy:Enabled
ExtendedVariationsSafeMode5:SignalAndWriteViaFileUtil5
FirstPartyEphemeralDomainBlockStudy:Enabled
ForceDisableBlinkFeatures:Enabled
NativeCosmeticFilteringStudy:Enabled
PartitionBlinkMemoryCacheStudy:Enabled
PartitionConnectionsByNetworkIsolationKeyStudy:Enabled
PermissionLifetimeReleaseStudy:Enabled
RequestAdsEnabledApiStudy:Enabled
SpeedreaderReleaseStudy:Enabled|


Port 10080 is not open from either of the instances.

Then I close both/all Brave instances and start them again but using second shortcut first and first shortcut after that. Here are outputs:


|Brave|1.41.100 Chromium: 103.0.5060.134 (Virallinen koontiversio) (64-bittinen)|
|Päivitetty versio|8ec6fce403b3feb0869b0732eda8bd95011d333c-refs/branch-heads/5060@{#1262}|
|Käyttöjärjestelmä|Windows 11 Version 21H2 (Build 22000.795)|
|JavaScript|V8 10.3.174.20|
|User agent|Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36|
|Komentorivi|“C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe” --explicitly-allowed-ports=10080 --disable-client-side-phishing-detection --disable-domain-reliability --enable-dom-distiller --component-updater=url-source=https:go-updater.brave.com/extensions --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --sync-url=https:sync-v2.brave.com/v2 --lso-url=https:no-thanks.invalid --variations-server-url=https:variations.brave.com/seed --variations-insecure-server-url=https:variations.brave.com/seed --flag-switches-begin --flag-switches-end|
|Suoritettavan tiedoston polku|C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe|
|Profiilin polku|C:\Users\Harri\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default|
|Aktiiviset muunnelmat|AdRewardsStudy:NextPaymentDay
AdServingStudy:DefaultAdNotificationsPerHour=10/MaximumAdNotificationsPerDay=100/MaximumInlineContentAdsPerHour=12/MaximumInlineContentAdsPerDay=60/AdServingVersion=1
BraveAds.UserActivityStudy:Triggers=NTPSI/TimeWindow=15m/Threshold=0.0/IdleTimeThreshold=5s
BraveDebounceStudy:Enabled
ConversionsStudy:NewDefaultPattern
Default1pBlockingStudy:Disabled
DisableReduceLanguage:Enabled
EphemeralStorageStudy:Enabled
ExtendedVariationsSafeMode5:SignalAndWriteViaFileUtil5
FirstPartyEphemeralDomainBlockStudy:Enabled
ForceDisableBlinkFeatures:Enabled
NativeCosmeticFilteringStudy:Enabled
PartitionBlinkMemoryCacheStudy:Enabled
PartitionConnectionsByNetworkIsolationKeyStudy:Enabled
PermissionLifetimeReleaseStudy:Enabled
RequestAdsEnabledApiStudy:Enabled
SpeedreaderReleaseStudy:Enabled|


and second


|rave|1.41.100 Chromium: 103.0.5060.134 (Virallinen koontiversio) (64-bittinen)|
|Päivitetty versio|8ec6fce403b3feb0869b0732eda8bd95011d333c-refs/branch-heads/5060@{#1262}|
|Käyttöjärjestelmä|Windows 11 Version 21H2 (Build 22000.795)|
|JavaScript|V8 10.3.174.20|
|User agent|Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36|
|Komentorivi|“C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe” --explicitly-allowed-ports=10080 --disable-client-side-phishing-detection --disable-domain-reliability --enable-dom-distiller --component-updater=url-source=https://go-updater.brave.com/extensions --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --sync-url=https:sync-v2.brave.com/v2 --lso-url=https:no-thanks.invalid --variations-server-url=https://variations.brave.com/seed --variations-insecure-server-url=https:variations.brave.com/seed --flag-switches-begin --flag-switches-end|
|Suoritettavan tiedoston polku|C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe|
|Profiilin polku|C:\Users\Harri\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default|
|Aktiiviset muunnelmat|AdRewardsStudy:NextPaymentDay
AdServingStudy:DefaultAdNotificationsPerHour=10/MaximumAdNotificationsPerDay=100/MaximumInlineContentAdsPerHour=12/MaximumInlineContentAdsPerDay=60/AdServingVersion=1
BraveAds.UserActivityStudy:Triggers=NTPSI/TimeWindow=15m/Threshold=0.0/IdleTimeThreshold=5s
BraveDebounceStudy:Enabled
ConversionsStudy:NewDefaultPattern
Default1pBlockingStudy:Disabled
DisableReduceLanguage:Enabled
EphemeralStorageStudy:Enabled
ExtendedVariationsSafeMode5:SignalAndWriteViaFileUtil5
FirstPartyEphemeralDomainBlockStudy:Enabled
ForceDisableBlinkFeatures:Enabled
NativeCosmeticFilteringStudy:Enabled
PartitionBlinkMemoryCacheStudy:Enabled
PartitionConnectionsByNetworkIsolationKeyStudy:Enabled
PermissionLifetimeReleaseStudy:Enabled
RequestAdsEnabledApiStudy:Enabled
SpeedreaderReleaseStudy:Enabled|


Both instances have port 10080 open.

So - second instance must somehow inherit the command line parameters from the first one AND a running instance must somehow prevent command line parameter to be working even though the second shortcut has it.

Yup, this is not really surprising behavior in this case. Let’s say you repeatedly double-click the same desktop shortcut (or for that matter, open a new profile), Brave (Chromium, really) is going to re-use a lot of the process scaffolding that was set up earlier – presumably to conserve resources.

In this case it’s doing the same thing, the difference is that it’s not ‘recognizing’ that you want a different set of parameters for the subsequent launch. I’m going to assume that Chromium has some built-in logic as to when to launch an entirely new set of processes; for example, if you change user-data-dir I’m thinking it will launch a new set of processes so it can write data into a completely different folder.

I don’t know what the Chromium logic looks like for the decision-making here, but now that we confirm the sequence of events it makes sense.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.