WebRTC:IsolatedNetwork
격리된 네트워크 환경 (Offline) 일 때 WebRTC 사용 방법.
Abstrtact
Firefox 브라우저에서 외부와 단전된 상태일 경우 (Offline 상태의 PC) WebRTC를 사용하고 싶다면 다음과 같은 순서로 설정해야 한다.
테스트 환경
문제점
RTCPeerConnections when the network is down
네트워크가 끊어진 상태로 RTCPeerConnection 객체를 생성하면 다음과 같은 에러가 발생된다.
RTCPeerConnection#Can't create RTCPeerConnections when the network is down 항목을 참조. 간단히, Firefox의 about:config
페이지에서 network.manage-offline-status
설정을 false
로 변경하면 된다.
localhost is not connect
STUN 서버가 로컬호스트일 경우 Trickle ICE 연결이 실패한다.
Session Traversal Utilities for NAT#stun:localhost is not connect 항목 참조. 간단히, Firefox의 about:config
페이지에서 media.peerconnection.ice.no_host
설정을 true
로 변경하면 된다.
더 큰 문제점
결국 ICE 연결시 SDP에 candidate
항목이 빠진다.
원인은 조사중 ..
그래서... 새로운 인터페이스를 만들고, 해당 인터페이스가 연결된(Network interface 상태가 UP 상태여야 한다) 상태로 전환한 후, /etc/hosts
파일 갱신, ICE 서버를 해당 주소로 연결하면 된다. 자세한 연결 방법은 ip_command#Installing The Linux Dummy-Network Interface 항목 참조.
See also
Favorite site
Articles
- WebRTC on local network? - Stack Overflow
- networking - Under which conditions and how does Webrtc PeerConnection work without a TURN server? - Stack Overflow
- p2p - webRTC peer to peer on the same physical network - Stack Overflow
- php - Is it possible to do WebRTC within Local Network from Pc to Pc with no use of Internet Access? - Stack Overflow
- WebRTC on isolated LAN without ice/stun/turn server - Stack Overflow