webRTC-io/webrtc.io-client

Setup problem localhost

dennismartensson opened this issue · 4 comments

@gopalsamyponnuraj moved the comments on a different issue in here because the comments hade nothing to do with the issue the where comments on.

@gopalsamyponnuraj commented:

Hi Can we make conference ( Voice and Video ) using webrtc.io.demo on chrome browser.

@gopalsamyponnuraj commented:

I downloaded and install webrtc.io.demo using command of npm install and then I started server using node server.js.
Then went to chrome browser and type localhost:8000. A conference page will displayed but I cannot create new chat Room.

I can only perform taxt chat with the same local machine. But cannot chat with other machine. (When ever I setup server address in io.js which is located in webrtc-io-client.

Please help me immediately because of its' Very URGENT.

Thanks a lot3

Hi,

Please do not add comments that have nothing to do with the open issue in the same issue log!

Open a new issue.

You can make multiple connections.

You can only use localhost:8000 on the local computer. One more computer can not connect to the address localhost. If you want to use it in a local network you will have to set it up with a new address to connect to. So what you have to do is.

Line 165 of index.html change from rtc.connect("http://localhost:8000/", room) to
rtc.connect("http://YOUR IP/:YOUR PORT", room); and make sure that the server.js line 10 are app.listen(YOUR PORT); or the port you want to use.

/Dennis

Hi

I'm trying to run your demo into my localhost. but it shows me error of
unexpected { on the line 119 var initiator = {{ initiator }};

I'm using windows 7, chrome 22

Your problem doesn't seem to originate from webrtc.io since that line code doesn't appear anywhere in it. It's probably originating from your code, possibly an issue with templates judging by the double curly brackets. And next time, open a new issue. Your issue has nothing to do with this one.

Dear Dennis,

    Please provide latest server.js code in WebRTC copy (for text chat application and file sharing).

Regards,
Tushar K.