Mdns-discovery problem

The latest version of Arduino makes it so that when a user opens the app, it creates a folder for them under their user profile in windows under app data. The problem is that this discovery app requires firewall access. A non admin user cannot allow access. An admin cannot create a firewall rule because the path is specific to the user profile of whoever is using the app. I have absolutely no idea how to get around this. A user cannot just cancel the firewall access message. The entire app just freezes up. How are people resolving this issue?

@rhspower please don't post the same question multiple times to different threads. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.

This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

I didn’t post this anywhere else?

What is specific? Can't %AppData% be used in the firewall settings to build the path to the mdns-discovery appliction?

Note:
I'm not a Windows admin.

The user folder reflects the users username

That is what changes for each user logging in

A post was split to a new topic: Old sketches don't work

%AppData% contains the username. My thinking is that you can use that instead of a hardcoded path.

Microsoft says you shouldn't do that and we can't at my large University because we use group policy loopback. Here's the quote from Microsoft: "we recommend that you do not use environment variable strings that resolve only in the context of a certain user (for example, %USERPROFILE%). When these strings are evaluated by the service at runtime, the service is not running in the context of the user. The use of these strings can produce unexpected results."

Arduino IDE 2 cannot be used in a windows computer lab type environment because of this and many other major problems. One of the arduino libraries that has to download for every user (every time in a lab environment of course) tries to install drivers even if those drivers are already installed in advance and so it throws what we call a User Access Control prompt which is a Windows thing that doesn't exist on Mac and Linux it stops administrator tasks from occurring.

This IDE 2.0 forum should just have a sticky post at the top where we list all the installation issues for managed environments where end users don't have full admin rights.

1 Like

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