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

WebRTC Connection Issue at Office Network #21

Open
ericxtang opened this issue Jan 23, 2025 · 1 comment
Open

WebRTC Connection Issue at Office Network #21

ericxtang opened this issue Jan 23, 2025 · 1 comment

Comments

@ericxtang
Copy link

Sometimes when I'm in an office, I cannot connect to the ComfyStream backend. For example, when I'm at WeWork, I see the following error. It seems to indicate that all ICE candidate pairs have failed. Perhaps this is because UDP ports are blocked?

My configuration:

  • Host ComfyStream backend on Runpod
  • Host ComfyStream UI on Runpod
  • Visit ComfyStream in the browser via an exposed port on the Runpod instance
  • Twilio is configured on the Runpod instance with Ryan's setup script
turn/udp < ('34.203.251.184', 3478) Message(message_method=Method.DATA, message_class=Class.INDICATION, transaction_id=b'oe\xaf\x07|\xbfadw%`\x03')
turn/udp < ('34.203.251.184', 3478) Message(message_method=Method.DATA, message_class=Class.INDICATION, transaction_id=b'\x80\xfc3d\x02\xf2DE\xa9V\xba\xa0')
turn/udp < ('34.203.251.184', 3478) Message(message_method=Method.DATA, message_class=Class.INDICATION, transaction_id=b'\x04H\xa4\xa3\xd0\xabCG\xdb.L\x0f')
turn/udp < ('34.203.251.184', 3478) Message(message_method=Method.DATA, message_class=Class.INDICATION, transaction_id=b'\xfcQ\x0c\xb4\x05#"A\xfcF\t\x1f')
turn/udp < ('34.203.251.184', 3478) Message(message_method=Method.DATA, message_class=Class.INDICATION, transaction_id=b'\xd9j\x08(\x90\x14\x12QP\x1a\x90\xdd')
turn/udp < ('34.203.251.184', 3478) Message(message_method=Method.DATA, message_class=Class.INDICATION, transaction_id=b'\xb0*\xe2|\xba\xf9\x10,\xcf;\t\x99')
turn/udp < ('34.203.251.184', 3478) Message(message_method=Method.DATA, message_class=Class.INDICATION, transaction_id=b'#p\x0e\xc1R\xb8B\x15\xc6\x84\x17k')
Connection(0) protocol(0) > ('10.69.230.67', 53763) Message(message_method=Method.BINDING, message_class=Class.REQUEST, transaction_id=b"y\xff=\x8b#Nm\x83\xd8'1z")
Connection(0) protocol(0) > ('69.193.150.98', 43747) Message(message_method=Method.BINDING, message_class=Class.REQUEST, transaction_id=b';\x1c\x06\xc4\x94\xbb\x9b\x87\xb1\xf9\x8f\xe2')
Connection(0) protocol(1) > ('10.69.230.67', 53763) Message(message_method=Method.BINDING, message_class=Class.REQUEST, transaction_id=b'\x99J\x88\x04qrXq\xc1e\x876')
Connection(0) protocol(1) > ('69.193.150.98', 43747) Message(message_method=Method.BINDING, message_class=Class.REQUEST, transaction_id=b'N`a\x15,d\xf2k\xd0\xb7\x92\x88')
Connection(0) protocol(0) > ('10.69.230.67', 53763) Message(message_method=Method.BINDING, message_class=Class.REQUEST, transaction_id=b"y\xff=\x8b#Nm\x83\xd8'1z")
Connection(0) protocol(0) > ('69.193.150.98', 43747) Message(message_method=Method.BINDING, message_class=Class.REQUEST, transaction_id=b';\x1c\x06\xc4\x94\xbb\x9b\x87\xb1\xf9\x8f\xe2')
Connection(0) protocol(1) > ('10.69.230.67', 53763) Message(message_method=Method.BINDING, message_class=Class.REQUEST, transaction_id=b'\x99J\x88\x04qrXq\xc1e\x876')
Connection(0) protocol(1) > ('69.193.150.98', 43747) Message(message_method=Method.BINDING, message_class=Class.REQUEST, transaction_id=b'N`a\x15,d\xf2k\xd0\xb7\x92\x88')
Connection(0) Check CandidatePair(('192.168.96.2', 5678) -> ('10.69.230.67', 53763)) State.IN_PROGRESS -> State.FAILED
Connection(0) Check CandidatePair(('192.168.96.2', 5678) -> ('69.193.150.98', 43747)) State.IN_PROGRESS -> State.FAILED
Connection(0) Check CandidatePair(('34.203.251.184', 31703) -> ('10.69.230.67', 53763)) State.IN_PROGRESS -> State.FAILED
Connection(0) Check CandidatePair(('34.203.251.184', 31703) -> ('69.193.150.98', 43747)) State.IN_PROGRESS -> State.FAILED
Connection(0) ICE failed
RTCIceTransport(controlled) - checking -> failed
RTCPeerConnection() iceConnectionState checking -> failed
RTCPeerConnection() connectionState connecting -> failed
RTCDtlsTransport(client) - State.NEW -> State.CONNECTING
RTCDtlsTransport(client) x DTLS handshake failed (connection error)
RTCDtlsTransport(client) - State.CONNECTING -> State.FAILED
Connection state is: failed
RTCIceTransport(controlled) - failed -> closed
RTCPeerConnection() iceConnectionState failed -> closed
RTCPeerConnection() connectionState failed -> closed
Connection state is: closed
Connection(0) protocol(0) connection_lost(None)
turn/udp > ('global.turn.twilio.com', 3478) Message(message_method=Method.REFRESH, message_class=Class.REQUEST, transaction_id=b'\xa9\xbf<\x8b\x1f\x91\x92u\xd30\xa7\r')
turn/udp < ('34.203.251.184', 3478) Message(message_method=Method.REFRESH, message_class=Class.RESPONSE, transaction_id=b'\xa9\xbf<\x8b\x1f\x91\x92u\xd30\xa7\r')
TURN allocation deleted ('34.203.251.184', 31703)
turn/udp connection_lost(None)
Connection(0) protocol(1) connection_lost(None)
@yondonfu
Copy link
Owner

I think I recall encountering this before and IIRC it was because UDP ports were blocked...worth at least checking if that is the case here. In case helpful there is a --media-ports flag for the server that can be used to select specific UDP ports too.

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