Connect AI2 Companion to Local AI2 Server Through Internet Like MIT

148 views
Skip to first unread message

imacat

unread,
Apr 30, 2019, 5:17:37 AM4/30/19
to App Inventor Open Source Development
Dear all,

I wonder if it is possible to connect the AI2 Companion to our own
AI2 server through the internet like MIT? We are building a local
service for our town. The AI2 Compamion of the users are not in the
same Wi-Fi network with AI2 server.

--
Best regards,
imacat ^_*' <ima...@steps.com.tw>
Steps Inc.
http://www.steps.com.tw/
+886-2-23518068
7F., No.15, Sec. 1, Zhongxiao W. Rd.,
Zhongzheng Dist., Taipei City 100, Taiwan

Evan Patton

unread,
May 2, 2019, 7:42:13 PM5/2/19
to App Inventor Open Source Development
You will need to run your own TURN server to support that and update the appengine/war/WEB-INF/appengine-web.xml configuration to point to the server. We provide default credentials for a server at MIT but this may result in significant latency depending on your bandwidth and location.

Regards,
Evan

imacat

unread,
May 3, 2019, 4:02:52 AM5/3/19
to App Inventor Open Source Development
Dear Evan,

Thanks. I shall check with this and see if I can succeed. ^_^

Evan Patton on 2019/5/3 7:42am said:
> You will need to run your own TURN server to support that and update the
> appengine/war/WEB-INF/appengine-web.xml configuration to point to the
> server. We provide default credentials for a server at MIT but this may
> result in significant latency depending on your bandwidth and location.
>
> Regards,
> Evan
>
> On Tuesday, April 30, 2019 at 5:17:37 AM UTC-4, imacat wrote:
>
> Dear all,
>
>     I wonder if it is possible to connect the AI2 Companion to our own
> AI2 server through the internet like MIT?  We are building a local
> service for our town.  The AI2 Compamion of the users are not in the
> same Wi-Fi network with AI2 server.
>
> --
> Best regards,
> imacat ^_*' <ima...@steps.com.tw <mailto:ima...@steps.com.tw>>
> Steps Inc.
> http://www.steps.com.tw/
> +886-2-23518068 <http://www.steps.com.tw/+886-2-23518068>
> 7F., No.15, Sec. 1, Zhongxiao W. Rd.,
> Zhongzheng Dist., Taipei City 100, Taiwan
>
> --
> You received this message because you are subscribed to the Google
> Groups "App Inventor Open Source Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to app-inventor-open-so...@googlegroups.com
> <mailto:app-inventor-open-so...@googlegroups.com>.
> To post to this group, send email to
> app-inventor-o...@googlegroups.com
> <mailto:app-inventor-o...@googlegroups.com>.
> Visit this group at
> https://groups.google.com/group/app-inventor-open-source-dev.
> For more options, visit https://groups.google.com/d/optout.

imacat

unread,
May 7, 2019, 5:12:00 AM5/7/19
to App Inventor Open Source Development
Dear Evan,

I assume you by appengine-web.xml configuration, you mean
use.rendezvousserver? Because I do not find a configuration for TURN
server.

So I can put my TURN server in use.rendezvousserver? Or should I
run my Rendezvous server but not TURN server?

Evan Patton

unread,
May 8, 2019, 10:10:54 AM5/8/19
to App Inventor Open Source Development
My apologies. I thought we had put that configuration into the appengine-web.xml file, but that isn't the case. The appropriate lines to change are:

blocklyeditor/src/replmgr.js: 83-85
components/src/com/google/appinventor/components/runtime/WebRTCNativeMgr.java: 216-218

Regards,
Evan
>> To post to this group, send email to

依瑪貓

unread,
May 27, 2019, 11:00:15 PM5/27/19
to App Inventor Open Source Development
Thank you.

However, I still cannot get it working. Should I set up my
Rendezvous server and set use.rendezvousserver, too? But I cannot find
a Rendezvous server on the internet that I can use.
> <mailto:ima...@steps.com.tw <mailto:ima...@steps.com.tw>>>
> >>     Steps Inc.
> >>     http://www.steps.com.tw/
> >>     +886-2-23518068 <http://www.steps.com.tw/+886-2-23518068
> <http://www.steps.com.tw/+886-2-23518068>>
> >>     7F., No.15, Sec. 1, Zhongxiao W. Rd.,
> >>     Zhongzheng Dist., Taipei City 100, Taiwan
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "App Inventor Open Source Development" group.
> >> To unsubscribe from this group and stop receiving emails from it,
> send
> >> an email to
> app-inventor-open-so...@googlegroups.com
> <mailto:app-inventor-open-source-dev%2Bunsu...@googlegroups.com>
> >> <mailto:app-inventor-open-so...@googlegroups.com
> <mailto:app-inventor-open-source-dev%2Bunsu...@googlegroups.com>>.
> >> To post to this group, send email to
> >> app-inventor-o...@googlegroups.com
> <mailto:app-inventor-o...@googlegroups.com>
> >> <mailto:app-inventor-o...@googlegroups.com
> <mailto:app-inventor-o...@googlegroups.com>>.
> <https://groups.google.com/group/app-inventor-open-source-dev>.
> >> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
> >
>
> --
> Best regards,
> imacat ^_*' <ima...@steps.com.tw <mailto:ima...@steps.com.tw>>
> Steps Inc.
> http://www.steps.com.tw/
> +886-2-23518068 <http://www.steps.com.tw/+886-2-23518068>
> 7F., No.15, Sec. 1, Zhongxiao W. Rd.,
> Zhongzheng Dist., Taipei City 100, Taiwan
>
> --
> You received this message because you are subscribed to the Google
> Groups "App Inventor Open Source Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to app-inventor-open-so...@googlegroups.com
> <mailto:app-inventor-open-so...@googlegroups.com>.
> To post to this group, send email to
> app-inventor-o...@googlegroups.com
> <mailto:app-inventor-o...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/app-inventor-open-source-dev/4d388173-f0f6-4c4d-a228-7e17fc1896a0%40googlegroups.com
> <https://groups.google.com/d/msgid/app-inventor-open-source-dev/4d388173-f0f6-4c4d-a228-7e17fc1896a0%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
楊士青/依瑪貓 imacat <ima...@steps.com.tw>
智新資通股份有限公司
http://www.steps.com.tw/
02-23518068
10652台北市中正區忠孝東路一段15號7樓

signature.asc

Evan Patton

unread,
May 28, 2019, 4:23:08 PM5/28/19
to App Inventor Open Source Development
A version of the rendezvous server code is in the misc folder in the sources. You'll need to set things up both in YaVersion.java and appengine-web.xml so that your instance and your companion know which server to talk to. Otherwise, they will go through the MIT servers.

Regards,
Evan
>     >> To post to this group, send email to
>     >> Visit this group at
>     >> https://groups.google.com/group/app-inventor-open-source-dev
>     <https://groups.google.com/group/app-inventor-open-source-dev>.
>     >> For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>.
>     >
>
>     --
>     Best regards,
>     imacat ^_*' <ima...@steps.com.tw <mailto:ima...@steps.com.tw>>
>     Steps Inc.
>     http://www.steps.com.tw/
>     +886-2-23518068 <http://www.steps.com.tw/+886-2-23518068>
>     7F., No.15, Sec. 1, Zhongxiao W. Rd.,
>     Zhongzheng Dist., Taipei City 100, Taiwan
>
> --
> You received this message because you are subscribed to the Google
> Groups "App Inventor Open Source Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> To post to this group, send email to

Yong Tang

unread,
May 28, 2019, 8:37:27 PM5/28/19
to App Inventor Open Source Development

1.修改 war\WEB-INF\appengine-web.xml中

<property name="use.rendezvousserver" value=""/>

<property name="use.rendezvousserver" value="自己电脑IP:8888"/>;

2.修改桌面版AI伴侣、手机AI伴侣的Rendezvous Server为自己电脑IP:8888




AI伴侣设置Rendezvous服务器.png






在 2019年5月28日星期二 UTC+8上午11:00:15,依瑪貓写道:
>     >> To post to this group, send email to
>     >> app-inventor-o...@googlegroups.com
>     >> Visit this group at
>     >> https://groups.google.com/group/app-inventor-open-source-dev
>     <https://groups.google.com/group/app-inventor-open-source-dev>.
>     >> For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>.
>     >
>
>     --
>     Best regards,
>     imacat ^_*' <ima...@steps.com.tw <mailto:ima...@steps.com.tw>>
>     Steps Inc.
>     http://www.steps.com.tw/
>     +886-2-23518068 <http://www.steps.com.tw/+886-2-23518068>
>     7F., No.15, Sec. 1, Zhongxiao W. Rd.,
>     Zhongzheng Dist., Taipei City 100, Taiwan
>
> --
> You received this message because you are subscribed to the Google
> Groups "App Inventor Open Source Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> To post to this group, send email to
> app-inventor-o...@googlegroups.com

imacat

unread,
Aug 8, 2019, 4:08:24 AM8/8/19
to App Inventor Open Source Development
Thanks all. I finally got this working. *^_^*

The key missing component for the AI2 server to connect to the AI2
Companion App is not the TURN server, but the Rendezvous server. The
Rendezvous server is in the appinventor/misc/rendezvous folder. After
starting the Rendezvous server by the instruction in the README.md file
in the rendezvous folder, I need to modify the
war\WEB-INF\appengine-web.xml file and set the use.rendezvousserver
property to the running Rendezvous server, in order to work.

Also a pitfall: Both the AI2 server and the Rendezvous server need
to be HTTP, not HTTPS.
>>> >> imacat ^_*' <ima...@steps.com.tw <javascript:> <mailto:
>> ima...@steps.com.tw <javascript:>>
>>> <mailto:ima...@steps.com.tw <javascript:> <mailto:
>> ima...@steps.com.tw <javascript:>>>>
>>> >> Steps Inc.
>>> >> http://www.steps.com.tw/
>>> >> +886-2-23518068 <http://www.steps.com.tw/+886-2-23518068
>>> <http://www.steps.com.tw/+886-2-23518068>>
>>> >> 7F., No.15, Sec. 1, Zhongxiao W. Rd.,
>>> >> Zhongzheng Dist., Taipei City 100, Taiwan
>>> >>
>>> >> --
>>> >> You received this message because you are subscribed to the
>> Google
>>> >> Groups "App Inventor Open Source Development" group.
>>> >> To unsubscribe from this group and stop receiving emails from it,
>>> send
>>> >> an email to
>>> app-inventor-open-so...@googlegroups.com
>> <javascript:>
>>> <mailto:app-inventor-open-source-dev%2Bunsu...@googlegroups.com
>> <javascript:>>
>>> >> <mailto:app-inventor-open-so...@googlegroups.com
>> <javascript:>
>>> <mailto:app-inventor-open-source-dev%2Bunsu...@googlegroups.com
>> <javascript:>>>.
>>> >> To post to this group, send email to
>>> >> app-inventor-o...@googlegroups.com <javascript:>
>>> <mailto:app-inventor-o...@googlegroups.com <javascript:>>
>>
>>> >> <mailto:app-inventor-o...@googlegroups.com
>> <javascript:>
>>> <mailto:app-inventor-o...@googlegroups.com <javascript:>>>.
>>> imacat ^_*' <ima...@steps.com.tw <javascript:> <mailto:
>> ima...@steps.com.tw <javascript:>>>
>>> Steps Inc.
>>> http://www.steps.com.tw/
>>> +886-2-23518068 <http://www.steps.com.tw/+886-2-23518068>
>>> 7F., No.15, Sec. 1, Zhongxiao W. Rd.,
>>> Zhongzheng Dist., Taipei City 100, Taiwan
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "App Inventor Open Source Development" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to app-inventor-open-so...@googlegroups.com
>> <javascript:>
>>> <mailto:app-inventor-open-so...@googlegroups.com
>> <javascript:>>.
>>> To post to this group, send email to
>>> app-inventor-o...@googlegroups.com <javascript:>
>>> <mailto:app-inventor-o...@googlegroups.com <javascript:>>.
>> 楊士青/依瑪貓 imacat <ima...@steps.com.tw <javascript:>>
>> 智新資通股份有限公司
>> http://www.steps.com.tw/
>> 02-23518068 <http://www.steps.com.tw/02-23518068>
>> 10652台北市中正區忠孝東路一段15號7樓
>>
>>
>

--
Best regards,
imacat ^_*' <ima...@steps.com.tw>
Reply all
Reply to author
Forward
0 new messages