-
Notifications
You must be signed in to change notification settings - Fork 236
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
Scratch Link connection for hardware extensions should work without Internet access #31
Comments
Is it possible to fix this before 24th of May? We have an Olympiad in robotics in Ukraine for more than 200 kids using Scratch 3.0 to program their WeDo 2.0 robots. Parents are going to use WiFi hotspots on their phones to let kids connect to robots, but that seems to become a disaster. |
^ Ping @thisandagain! @Timurinyo you may be best contacting the ST through Contact Us and sharing the ticket number with thisandagain through Scratch. I'm not entirely sure that the ST reads every comment immediately, and... well, it'd need to be seen quite immediately, since the 24th of May is just four days away. (Seeing as that's the case, you probably shouldn't count on it anyway -- not only would fixing it take considerable* and immediate time/effort, it'd need to be published to the Scratch website or Scratch Desktop, unless you happen to be 1) able to build the editor with the fix yourself and 2) distribute it to all the target devices at your event.) (* though I don't know how considerable since I have no idea what sort of code resolving this issue would take!) |
@Timurinyo Unfortunately this is a fairly complex issue that will take quite a bit of time to resolve and will not be done in time for your event. My apologies, but I hope we can help make this better in the future! |
Maybe you can suggest some temporary fix? For example some little snippet that will resolve the name instead of DNS? |
@Timurinyo for this to work correctly, |
@cwillisf It worked. Thanks for being so helpful! |
Hi this is my first post of GitHub. To prevent security risk, latest DNS masquerade service is rejecting to map to private ip-addresses, such as At least a school local network has this secure router configuration, it can be found in scratch3.0 thread, and similar sites would be increasing. |
Expected Behavior
If Scratch Link is running, hardware extensions like the micro:bit, LEGO WeDo 2.0, etc., should work whether or not the computer is connected to the Internet.
Actual Behavior
Connecting to Scratch Link requires an Internet connection: specifically, we need DNS to resolve the
device-manager.scratch.mit.edu
name to an IP.Proposal
Scratch Desktop is a different security environment for the Scratch editor, and in particular it can probably be configured to connect to Scratch Link over plain
ws://
instead ofwss://
. In that scenario we wouldn't need to validate the name on a digital certificate, so we wouldn't need to connect using a DNS name: we could just connect tows://127.0.0.1:<port>/
and avoid the need for DNS altogether.This would require Scratch Link to expose a regular
ws://
port in addition to its currentwss://
port but that should be easy.The text was updated successfully, but these errors were encountered: