Skip to content
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

how provide public ip and local ip manually to RTCMulticonnection instead using stun and turn server #1062

Open
webleb opened this issue Apr 6, 2023 · 14 comments

Comments

@webleb
Copy link

webleb commented Apr 6, 2023

Hello,
I am looking for a solution that allow me to provide public and local ips of peers manually instead of using signal and stun and turn server.
is there a way to provide rtcmulticonnection the info needed to establish peer to peer connection such public and local ip manually?
@grimace @killmenot @muaz-khan @dansandland @Yuripetusko
it is appreciated if someone could help
Thanks

@ROBERT-MCDOWELL
Copy link

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)

@webleb
Copy link
Author

webleb commented Apr 8, 2023

@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

@ROBERT-MCDOWELL
Copy link

@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.

@webleb
Copy link
Author

webleb commented Apr 8, 2023

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

@ROBERT-MCDOWELL
Copy link

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

@webleb
Copy link
Author

webleb commented Apr 8, 2023

@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.

@webleb
Copy link
Author

webleb commented Apr 8, 2023

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

@ROBERT-MCDOWELL
Copy link

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

@webleb
Copy link
Author

webleb commented Apr 9, 2023

@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).

@ROBERT-MCDOWELL
Copy link

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

@webleb
Copy link
Author

webleb commented Apr 9, 2023

@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.

@ROBERT-MCDOWELL
Copy link

ROBERT-MCDOWELL commented Apr 9, 2023

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.

@webleb
Copy link
Author

webleb commented Apr 9, 2023

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

@ROBERT-MCDOWELL
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants