network error when attempting to use AI companion to connect over wifi

281 views
Skip to first unread message
Assigned to andrew.f...@gmail.com by steve....@gmail.com

fich...@stpatsdc.org

unread,
Jan 7, 2015, 5:38:40 AM1/7/15
to mitappinv...@googlegroups.com
On a variety of devices and networks, I get a "Network Error" message when attempted to use "Connect to Companion." 

I make sure to follow all instructions and troubleshooting tips provided here.

It's interesting because the same variety of devices and networks worked perfectly fine this summer.

For the past few months, my students and I have been testing our code by clicking "build APK" rather than live testing because connecting to the companion just hasn't been working for us. The students use Dell laptops and Samsung Chromebooks and connect to Nexus 7 devices. A few students say that "Connect to Companion" works, but I've only actually seen it work for one student using a Chromebook and a Nexus 7. That student's always works, which is interesting because that student's devices and network connect are identical to everyone else's. I've seen many, many instances in which "Connect to Companion" does not work.

I personally use one of the student's Nexus 7 devices or a Moto X and a Lenovo or Dell laptop running Windows 7. No luck on our school's network or at my home, even though both worked perfectly fine over the summer. "Build APK" works fine, as I mentioned, though.

My first theory was that perhaps I had the wrong version of AI2 companion. But I've tried many times to download the latest version from Google Play or from the APK provided here. That doesn't fix the problem.

My second theory was that perhaps something had changed in MalwareBytes or Microsoft Security Essentials since this summer. All of our Windows 7 devices use that, and maybe an update there was getting in the way. I tried disabling real-time protection for both, though, and had no luck.

Any other recommendations would be appreciated! Thanks!

The ideal combination would be a Samsung Chromebook successfully connecting to AI2 Companion on a Nexus 7, but Dell with Windows 7 to AI2 Companion would be great, too.

SteveJG

unread,
Jan 7, 2015, 8:23:38 AM1/7/15
to
Your connection issues are interesting, mainly because they are bizarre and your comment "It's interesting because the same variety of devices and networks worked perfectly fine this summer"   So your students are using the emulator OK?


The Dell Win to AI Companion is very standard.
A Chromebook to AI Companion?    I did not know that was possible, possibly using the LINUX drivers?

Several virus checkers have issues with AI2 connections, notably preventing the emulator from running.   I know AVG has a setting called a link setting that when adjusted permits AI2 to communicate.

Is it possible that your IT department made changes to the firewall this summer?    Port 8004 must be accessible. Your entire scenario appears firewall related.  Another possible issue is the number of users in your class.  You network might be too slow to permit many users of AI; I do know that when some schools have slow network connections, that students early logging in have few if any issues, however those logging in later have serious connection problems.  Could this be an issue.

What is strange is that you also have issues at "home."    ... What kind of Internet connection do you have at home?    DSL, dial up or are you attempting to use a 3G network hub (which usually work poorly)?

Building a app 'blind' in AI2 is possible and can be done as you describe; by building an apk then loading it to a device.   It certainly works but is awkward at times and it is generally significantly easier to build using the live development options.

Of note is that Nexus 7 is one of the platforms MIT uses for testing, however their primary computer is a Mac.

Are you using the Windows setup for your Dell?  Are you using the Linux setup for your Chromebook?

Here is some of the standard stuff to read regarding connection issues:


Another thing that prevents AICompanion connections that might be installed on your PCS:
If you have BlueStacks on your home PC (BlueStacks is a special emulator that allows Android apps to run on a PC).  The Google emulator on AI2 cannot run unless BlueStacks is disabled and all of the BlueStacks processes are shut down.  On a Windows PC, you use the Task Manager to 'kill' running processes.

Make sure your browser is one of the supported browsers and up to date.  AI will not work with Internet Explorer, but works fine with Safari, Firefox and Chrome...perhaps this is the issue?

Try reading those, perhaps you will find something new to try.   Let us know what you find.   Having to build all the time blind and build an apk works but perhaps we can find a way for your students and you to have more fun.

In plain words, you are having no luck with live development.   Is that the case?  Does your emulator work?

Regards,
Steve

Reply all
Reply to author
Forward
0 new messages