question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scratch Link connection for hardware extensions should work without Internet access

See original GitHub issue

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 of wss://. 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 to ws://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 current wss:// port but that should be easy.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Timurinyocommented, May 22, 2019

@cwillisf It worked. Thanks for being so helpful!

0reactions
y05scommented, Jun 20, 2019

Hi this is my first post of GitHub. I’m @y05s from scratch3.0 thread, discussing about “scratch link never work on my local network”. https://scratch.mit.edu/discuss/topic/354657/?page=1#post-3597312 I’ve just solved my issue above, and this Github thread was much useful for me. I have to say thank you so much!!!

To prevent security risk, latest DNS masquerade service is rejecting to map to private ip-addresses, such as 192.168.*.* ,127.0.0.1 . The DNS record of device-manager.scratch.mit.edu to 127.0.0.1 matches to this restriction. Please refer following discussion for your more understanding: https://news.ycombinator.com/item?id=12408918

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. Please consider/plan to discontinue using this DNS record. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does Scratch Link need wifi? - Discuss Scratch
I believe Scratch link uses network connection to somewhere. Your experience with offline editor gave me good information.
Read more >
Scratch Link - Scratch Wiki
Scratch Link is a downloadable program that enables Scratch 3.0 to connect to and control devices in the physical world.
Read more >
Did you know you can access Scratch without an internet ...
Yes, you can work on the Scratch app while the scratch is running in the browser. Can the projects be shared from the...
Read more >
Frequently Asked Questions - Scratch Addons Docs
Currently, you cannot. First, Safari extension store requires all developers to pay an annual fee to list extensions on the store. As Scratch ......
Read more >
Getting Ready for Your LSAT Exam - LSAC
A strong and stable Internet connection; Google Chrome or Mozilla Firefox web browser; Administrative rights to the computer on which you'll take the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found