-
-
Notifications
You must be signed in to change notification settings - Fork 7k
COM ports not showing if connected to network #8866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @lemmingDev , |
Maybe related to getBoardWithMatchingVidPidFromCloud() ?? Just a blind guess really... |
Unless the proxy/firewall leaves the connection pending that function should always return, in a way or another. |
@facchimm Screencast? Do you mean a video of what's going on? Thanks for the reply |
@lemmingDev that's correct. I'm using a free, open source, lightweight program called LICEcap for this purpose. |
Sorry - moving house and haven't had time to screencast. Not much to see anyway. When connected to network at school, Ports menu option is greyed out when opening Arduino. When I am disconnected from network and open Arduino, ports menu is polulating the ports fine. Problem only happens at school. Technicians at school say its probably a firewall issue. What URLs does the IDE try to reach when opening? |
It tries to reach: That URL in a normal (non firewalled) environment should return 404 on a "board not found" and a json in case the board is known. If the connection hangs in your environment it could be the root cause of the greyed out board list. |
Thanks. Will ask technicians to allow that URL. The problem also presents itself when no board is attached though. Does it still try to reach that URL passing the VID and PID of the currently selected board? |
Wireshark capture indicates 52.139.250.253 getting blocked. Looks like it belongs to Microsoft Azure Waiting on regional technicians to continue looking into it. Would be great if it was fixed on the Arduino end though so others don't have the problem |
Hello @lemmingDev, I'm part of the operations team at Arduino. The IP address you indicate is a server that does not belong to us. In order to help us debugging this issue would be possible for you to provide a If possible stop any other network activity during the capture. Send the file to support@arduino.cc referencing "arduino/Arduino issue 8866". Thank you! |
Thanks for looking into this Email with capture sent |
After further investigation, this seems mainly a fault not directly related to the IDE. The IP address aforementioned is a IP address related to Windows Push Notification Service. Our guess is it gets blocked by network limitation on Microsoft telemetry. The IDE was probably downloaded through Microsoft Store (I'm still waiting confirmation on this). This is a network issue on the client side we are not able to "fix". (We may be able to reproduce the issue but I'll continue the discovery and troubleshooting via private channel with @lemmingDev) Could we try improving the Arduino IDE side of this issue, by ensuring that all network requests are terminated after a timeout? @facchinm would this be feasible? My understanding of this confirms what @facchinm said in the previous comment, this is likely a network issue and not a bug. I see a possible bug in how we handle "never ending" network requests, but will require further investigation. |
I can confirm the issue here was the local network topology preventing access to the required endpoint http://api-builder.arduino.cc/, resulting in pending connections. I would close this as has been resolved, but I'd like to open a follow up improvement ticket to handle this errors more nicely. |
Threading the request and canceling the thread on timeout should work, I'll try to setup a PR in the next few days |
Fantastic! Let me know when it's ready to test |
Hi - Just spoke to regional IT support for my work. They say it may be a good idea for Arduino developers to make calls to http://api-builder.arduino.cc/ and any other URLs proxy aware. They think this would allow the connection/response and fix the problem. |
FYI - for anyone who may be experiencing the same issues, I added an entry in my hosts file to redirect |
If I'm not connected to a network when opening the Arduino IDE, all COM ports are displayed under Tools / Ports correctly.
If I'm connected to a network, the ports menu is greyed out.
This behaviour occurs when I'm at work (a public highschool in Australia) which has pretty strict firewall and proxy settings that block a lot of things.
It happens on school desktops, along with my work laptop and student's personal laptops.
There must be something in the Arduino IDE that tries to call home on startup that my work is blocking that is causing this behaviour.
We shouldn't have to disconnect from the network to have the IDE work correctly. We need to access resources, mark rolls etc. I also can't have students ripping LAN cables out the back of desktop PCs every time the want to use the IDE.
Please allow COM ports to be listed even though computer has limited network connectivity.
This behaviour is present on 1.8.9 installed and portable Windows versions. Even on a much older 1.6.x version.
The text was updated successfully, but these errors were encountered: