install https://apprtc.appspot.com on local.

2,272 views
Skip to first unread message

marco ferrara

unread,
Nov 12, 2015, 11:39:08 AM11/12/15
to discuss-webrtc
Hi,
sorry for my English.

I would develope a videochat like https://apprtc.appspot.com (can I use directly this in my php site?),
but I have more difficults to install the server and deploy the application (I don't find the source code) on local, I have ubuntu server 14.04 installed.

Can you help me to install step by step and deploy the application?

Thanks
Marco

Christoffer Jansson

unread,
Nov 16, 2015, 2:49:15 AM11/16/15
to discuss-webrtc
Hi,

AppRTC relies on Google App Engine for lots of things (checking out the python scrips in the app_engine folder should give you some hints) hence your service would either need to run on GAE or you would need to modify AppRTC heavily to use something else.

Instructions on how to develop and build it can be found in the AppRTC GitHub repo here.

You will also need a Websocket signalling server, AppRTC uses Collider (written in Go and uses the Go Websocket library) which also resides in the AppRTC GitHub repo. This runs on a Google Compute Engine VM but you can use any cloud based VM service or your your own server as it does not use anything GCE specific AFAIK.

Then you would also need a Turn and/or Stun server in order to provide candidates for the clients, AppRTC uses rfc5766-turn-server running on a GCE VM, again you can run this on any cloud based VM service or your own server.

Hope this helps.

/Chris

marco ferrara

unread,
Nov 18, 2015, 9:57:07 AM11/18/15
to discuss-webrtc
Hi,

I install AppRTC Demo Code on my test server Ubuntu 14.04, in this mode:
Download file google_appengine_1.9.28.zip fromt https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python to /tmp
    cd /home/
usertest
    unzip google_appengine_1
.9.28.zip
   
export PATH=$PATH:/home/usertest/google_appengine/
    cd
/var/www/html
    sudo git clone https
://github.com/webrtc/apprtc.git
    cd apprtc
    sudo apt
-get install nodejs
    sudo apt
-get install npm
    sudo apt
-get install nodejs-legacy
    sudo npm
-g install grunt-cli
    sudo npm install
    sudo apt
-get install python-webtest
    sudo grunt build




but when I lunch this command:
/home/usertest/google_appengine/dev_appserver.py ./out/app_engine

the sistem respond in this mode:
INFO     2015-11-18 14:53:14,479 api_server.py:205] Starting API server at: http://localhost:60498
INFO    
2015-11-18 14:53:14,501 dispatcher.py:197] Starting module "default" running at: http://localhost:8080
INFO    
2015-11-18 14:53:14,505 admin_server.py:116] Starting admin server at: http://localhost:8000

but if I try to connect to the server on the 8080 port I receive the web browser error: Connection failed

Can we help me please?
Thanks
Marco

marco ferrara

unread,
Nov 20, 2015, 3:51:07 AM11/20/15
to discuss-webrtc
Anyone can help me?

Christoffer Jansson

unread,
Nov 20, 2015, 4:09:29 AM11/20/15
to discuss-webrtc
What error code do you get when you browse to http://localhost:8080? Open the javascript console and check.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/24b10732-b3b8-4fd5-a947-7f2e0407d2bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

marco ferrara

unread,
Nov 20, 2015, 4:57:08 AM11/20/15
to discuss-webrtc
when I lunch this command:
/home/balacche4/google_appengine/dev_appserver.py ./out/app_engine

and try to connect to my browser to the server on port 8080 with chrome I receive this error:

Failed to load resource: net::ERR_CONNECTION_REFUSED
http://192.168.15.3:8080/:1 GET http://192.168.15.3:8080/ net::ERR_CONNECTION_REFUSED


Il giorno giovedì 12 novembre 2015 17:39:08 UTC+1, marco ferrara ha scritto:

Christoffer Jansson

unread,
Nov 20, 2015, 5:31:15 AM11/20/15
to discuss-webrtc
Where does those IP addresses come from? You should see http://locahost:8080 failures, do you have a proxy running or something else redirecting localhost requests? Check your hosts file.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

marco ferrara

unread,
Nov 20, 2015, 5:39:54 AM11/20/15
to discuss-webrtc
I install all on vm ubuntu server with ip 192.168.15.3
No proxy in the lan

My pc has this ip: 192.168.15.5

I try to connect from my pc (192.168.15.5) to ubuntuserver (192.168.15.3) and receive this error.
Now try to stop apache2 but I have the same probleme.

Can I do?
Thanks


Il giorno giovedì 12 novembre 2015 17:39:08 UTC+1, marco ferrara ha scritto:

Christoffer Jansson

unread,
Nov 20, 2015, 5:50:36 AM11/20/15
to discuss-webrtc
This is due to binding the GAE instance to locahost which can only be accessed on the same machine. Start the the GAE server with the --host flag to enable other machines to have access. Do note however that certain things like TURN etc will not work unless you run the GAE instance on localhost, i.e it's better if you access the GAE instance on the same machine as it's running on.

Try with --host 0.0.0.0 or --host 192.168.15.3:
/home/usertest/google_appengine/dev_appserver.py ./out/app_engine --host 0.0.0.0
/home/usertest/google_appengine/dev_appserver.py ./out/app_engine --host 192.168.15.3



--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.

marco ferrara

unread,
Nov 20, 2015, 6:22:51 AM11/20/15
to discuss-webrtc
Hi Christoffer thank you very much!
I try to lanch this and work correctly!
/home/usertest/google_appengine/dev_appserver.py ./out/app_engine --host 0.0.0.0

Now I have another 2 questions:

1) Where is the file to request http://localhost:8080/ that can I modify to personalize the app?
2) can I change the file to request to http://locahost:8080/
For example, if the file is index.html can I change and use another file named index2.html or index.php?

Thanks
Marco



Il giorno giovedì 12 novembre 2015 17:39:08 UTC+1, marco ferrara ha scritto:

Christoffer Jansson

unread,
Nov 20, 2015, 7:20:28 AM11/20/15
to discuss-webrtc
Google app engine projects use app.yaml to define URL handlers. So for apprtc, you will find app.yaml in https://github.com/webrtc/apprtc/blob/master/src/app_engine/app.yaml and the main app is defined at https://github.com/webrtc/apprtc/blob/master/src/app_engine/app.yaml#L37 as "apprtc.app" which points to https://github.com/webrtc/apprtc/blob/master/src/app_engine/apprtc.py in the same folder and the app section at https://github.com/webrtc/apprtc/blob/master/src/app_engine/apprtc.py#L567 sets up the URL handlers (you can see that they point to functions in the apprtc.py).

You can serve simple index.html files on GAE (example here), however AppRTC uses templating to render the pages on the fly instead which you can see at https://github.com/webrtc/apprtc/blob/master/src/app_engine/apprtc.py#L527, this is the function that is called when doing a HTTP Get request which is what the browser does when you type in apprtc.appspot.com and hit enter.

Google app engine app.yml documentation can be found here.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages