Coder Social home page Coder Social logo

Comments (14)

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on June 4, 2024

you are talking about ip multicast which is not available in javascript today. a project started 2 years ago to implement it as a browser W3C standard but stopped to be financed by Cisco. however the main author of this project would be happy to see open source developers to continue the job...
https://lists.w3.org/Archives/Public/public-multicast/
https://www.w3.org/community/multicast/
https://github.com/GrumpyOldTroll/wicg-multicast-receiver-api
(btw ip multicast was implemented in the lovely missing flash plugin until 2021 and the end of plugins in browser)

from rtcmulticonnection.

webleb avatar webleb commented on June 4, 2024

@ROBERT-MCDOWELL @grimace @killmenot @muaz-khan
I am trying to build a stun-like script in javascript (not node.js) that read the ip's from a local file and i want to make rtcmulticonnection working without signal server.
does anyone can assist in that

from rtcmulticonnection.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on June 4, 2024

@webleb you cannot develop a stun/turn server on javascript client side since the JS engine of browsers don't allow to create low level sockets and btw the sandbox does not allow other clients to know your IP.

from rtcmulticonnection.

webleb avatar webleb commented on June 4, 2024

@ROBERT-MCDOWELL
I dont want that Stun know the ip but just read it from input form enter it by user.

from rtcmulticonnection.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on June 4, 2024

I suggest you learn what is a STUN/TURN server here
https://blog.ivrpowers.com/post/technologies/what-is-stun-turn-server/
STUN server must know the ip of each client, it's the main job of a STUN server

from rtcmulticonnection.

webleb avatar webleb commented on June 4, 2024

@ROBERT-MCDOWELL
I know what is STUN server.
i just want use same mechanism to pass the ip to webRTC.
i dont want that my new "STUN" to know the ip but just read it from a file or input form.

from rtcmulticonnection.

webleb avatar webleb commented on June 4, 2024

i just want a way to pass the ip to RTCMulticonnection without using stun and turn and signal server.
@ROBERT-MCDOWELL @grimace @killmenot @muaz-khan

from rtcmulticonnection.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on June 4, 2024

you cannot, it's sandboxed! you have no other way to to get the ip but from STUN!

from rtcmulticonnection.

webleb avatar webleb commented on June 4, 2024

@ROBERT-MCDOWELL
suppose that i know the ip and i just want to pass it to webRTC (if it is complex i will use same mechanism that stun use it to pass it to webRTC).

from rtcmulticonnection.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on June 4, 2024

do you understand when I say "sandboxed"?? it means you CANNOT hardcode p2p ips into webrtc, it's a security prevention

from rtcmulticonnection.

webleb avatar webleb commented on June 4, 2024

@ROBERT-MCDOWELL
i know sandboxed , it is used also in iframe in some case for security.
i just want to know where the ip is sandboxed ? in STUN? if it is not sandboxed in STUN i can use the same mechanism that STUN use it to pass it to RTCMulticonnection.

from rtcmulticonnection.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on June 4, 2024

what you call "mechanism" is the ICE protocol, through UDP / TCP. better you just install an stun server locally and the discovery willl be ok since (again) you cannot manipulate ips in webrtc as ICE stun is encrypted between peers.

from rtcmulticonnection.

webleb avatar webleb commented on June 4, 2024

can i install stun on users mobile by downloading my app?
@ROBERT-MCDOWELL

from rtcmulticonnection.

ROBERT-MCDOWELL avatar ROBERT-MCDOWELL commented on June 4, 2024

this is off topic... better you go to stun server developers.... please close this issue now thanks

from rtcmulticonnection.

Related Issues (20)

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.