Comments (5)
Ok, as soon as I submitted this issue I thought to grep the code for localhost and I found the following line:
video_call_with_chat_and_file_sharing.html: signaling_server = new WebSocket("ws://localhost:1234");
If I change that to my IP address it works just fine. Is this expected?
from getting_started_with_webrtc.
Hi Chris, yep that's correct. If you want to access the node server from different computers then you need to update the script to use an IP address that is accessible to all of them. The shorthand "localhost" is just mapped to 127.0.0.1 which is only accessible on that local computer.
Also, please make sure you use the latest code from github. There was a race condition in the call setup that's been fixed in that code. See the use of the "local_stream_added" variable to see more info.
And please let us know if you have any other questions or issues.
Thanks.
from getting_started_with_webrtc.
Thanks for the info. The README.md is mis-leading. It seem to read that it should work out of the box from different hosts. It is clear to me now. And thanks for the update.
from getting_started_with_webrtc.
Hi Chris, thanks for the feedback. I've updated the README.md to make sure that's 100% clear.
Let me know if you have any other suggestions.
from getting_started_with_webrtc.
If i use localhost it is working fine but if i use my ip address it is struck at One moment please...connecting your call.
from getting_started_with_webrtc.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from getting_started_with_webrtc.