Giter VIP home page Giter VIP logo

Comments (5)

yepher avatar yepher commented on July 17, 2024

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.

buildar avatar buildar commented on July 17, 2024

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.

yepher avatar yepher commented on July 17, 2024

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.

buildar avatar buildar commented on July 17, 2024

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.

AnushaTeleparadigm avatar AnushaTeleparadigm commented on July 17, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.