Companion suddenly disconnecting (like Mat99's topic from a while back)

Hello, I'm trying to connect the AI Companion on my tablet. As usual - been using for many months without error - I scan the QR code on my computer with my tablet, using Companion version 2.76. On the computer, the loading gets stuck for several seconds on "establishing a secure connection" then shows the error message : "Network Error - the companion has disconnected".
Computer and tablet are on the same network. The network appears to be stable, as every time I scan the QR code, AI2 switches to the 'Progress bar'...

I have tried with different projects, and previously working project-checkpoints; restarted my tablet; reinstalled the app, but the same symptoms over and over...
I've check my laptop's firewall - set to Off. Project building works fine!

What should I try now please ?
Thank you for all help with this.
C.

A link to "Matt's" topic ?

Mat99's topic: Hello, I'm trying to connect the AI Companion on my phone. As usual, I scan the QR code on my computer with my phone, with the last version of the app. On the computer, the loading is stuck a few seconds on "establishing a secure connection" then shows the error message : "the companion has disconnected".
I tried with different projects, rebooted my phone, reinstalling the app but it still doesn't work...
What should I do please ?

:question:

Mat99's topic: (not Matt :expressionless: )

advicce was ttto close your firewall then try again. And is your phone and pc in same network?

and Mat replied:
Wow thank you. It did come from the firewall. After disabling it it worked but may I ask how I can make it work without disabling my firewall ?

ewpattonMIT

Nov '21

Two possible things that might be an issue on Windows:

  1. If you have a browser extension installed like HTTPS Everywhere, it may be trying to load App Inventor over HTTPS which will break how App Inventor connects to the iOS companion.
  2. If you have a firewall configured on the computer, ensure that the browsers are allowed to make outgoing connections on TCP port 8001, which is the port used by the browser to talk to the companion app on the iOS device. If outgoing connections are being blocked, that would explain why all browsers fail to connect on Windows.

Probably you firewall (a school's???) is Blocking port 8001.

as described in

[School IT/Network Admins: Information specific to school networks (also helpful for conferences and hotel situations)](Letter for IT Professionals in Schools for Using App Inventor - Google Docs

Hi Steve, thanks for helping with this.
Yes, I checked my firewall s/w; it's never been set to On, so I can't see how that might be the issue on my laptop!

The Companion link between the devices - on the same network - was working fine yesterday, and works now to trigger the AI2 progress bar when the QR code is read by my tablet. The disconnected companion message is titled 'Network Error', but just two secs before that error displays, the network connection was sufficient for AI2 to be sent a message with the QR code, so I'm thinking what network error can have occurred if it's not firewalled? - I've also tried VPN Off (normally On), with no change in symptoms.
Very frustrating, as I can no longer test my project properly - I can build it, but not debug it!!
C.