WebRTC connection between peers connected on localhost 127.0.0.1

817 views
Skip to first unread message

pragnesh patel

unread,
Dec 7, 2018, 8:28:43 PM12/7/18
to discuss-webrtc
Hello All,

I have slightly different usecase here. I want to do a webrtc connection between two peers running on the same host. My hardware has no connectivity (no WiFi, Ethernet), only interface I have is a lo (127.0.0.1). I am doing signaling using direct function calls between two peer processes.

From peer1 I am able to generate an offer and send it to peer2. peer2 is able to set the remote SDP and I am getting SetSessionDescriptionObserver::OnSuccess() callback, but WebRTC is not generating any ICE candidate on any of the peer. I looked at the configurations but I couldn't find anything matching to my usecase.

Is this a valid usecase, should it work?

One observation is, if I connect my hardware to a WiFi (with/without Internet access), everything works.

Any help is much appreciated.

Thanks,
Pragnesh

Anatoly Y.

unread,
Dec 9, 2018, 5:46:05 AM12/9/18
to discuss-webrtc
Its valid use case. You can see webrtc examples for that. https://webrtc.github.io/samples/
Reply all
Reply to author
Forward
0 new messages