-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does this work in a closed network (f.e. on a wifi network with no internet)? #29
Comments
Yes, just download the project on each machine and open the html file in a browser |
What are the limitations? Do they need to be on the same network? Or does this also work over internet? Any other limitations? |
How does speed compare to Web sockets for streaming data? Have you compared by chance? |
Why not just try it? WebRTC datachannels are faster than websockets in the sense that WebRTC supports UDP and websockets only support TCP. So if you're building something that wants UDP-like behavior, like streaming movies or multiplayer games, you would probably prefer WebRTC. |
I just gave it a shot. I don't see where I get the "answer" from. On the first tab, I type "hello" in the box after hitting "create" server. Then it shows a box to input the "answer". Then in the second tab I hit "join", and type "hello" in the box. I don't see where to get the answer. |
@trusktr You need to wait a while after hitting "create" server to see the "offer text" show up in the textarea (it's not for inputting any text). It took me a while to aware the time needed for ICE by comparing the code for browser and node.js.
In your case, in a closed network, you can delete iceServers from var cfg = {'iceServers': [{'url': 'stun:23.21.150.121'}]} to make offer text generation instant. @cjb I think it will be better to update the text Also make the textarea read only... BTW, this project is a good example to understand WebRTC. Thanks! |
Does this work in a closed network (f.e. on a wifi network with no internet)?
I'd like to connect two devices by running code in each device's browser. They are on the same network via WiFi, without internet.
Is this what can be done?
The text was updated successfully, but these errors were encountered: