Reputation: 511
I am recently learning webRTC and now I can successfully establish the peerConnection after using getUserMedia and createPeerConnection. But this connection is established randomly, I mean I cannot chose whom I want to connect.
Now I am thinking to establish the connection with a specific IP address, how to realize this? Please help! Thanks!
Upvotes: 0
Views: 544
Reputation: 65
You could use a websocket to connect both peers.
var socket = new WebSocket('ws://yourdomain.com:1337');
You need to install a server like node.js. I found this prototype useful:
Video Conferencing Proto
After the installation run: node websocket-server.js
Did you get the new JSEP protocol to run? I have problems replacing the deprecated ROAP protocol with JSEP.
Upvotes: 1