This message was deleted.
# helpdesk
s
This message was deleted.
d
can you share what your network configuration is? where is the client and where is the server? are you forwarding port 7881 (TCP) correctly on the firewall?
b
The server is in the external network and the client is in the local area network The configuration information is as follows:
Copy code
port: 80
rtc:
    udp_port: 7882
    tcp_port: 7881
    use_external_ip: false
keys:
    devkey: secret
logging:
    json: true
    level: debug

prometheus_port: 6789

room:
   enabled_codecs:
     - mime: audio/opus
     - mime: video/vp8
     - mime: video/vp9
     - mime: video/h264
d
what are you using for the local client?
b
I set up a live kit server locally and it can run normally. Then modify the use mode of the client:
Copy code
ws://(xx.xx.xx.xx)use_ external_ ip/rtc? access_ token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2Njg2NDU5ODQsImlzcyI6ImRldmtleSIsIm5hbWUiOiJpcGNhbWVyYSIsIm5iZiI6MTY2NjA1Mzk4NCwic3ViIjoiaXBjYW1lcmEiLCJ2aWRlbyI6eyJyb29tIjoiYWRtaW4iLCJyb29tSm9pbiI6dHJ1ZX19.VBEYactr6rzV175mqi2xeG7fy01YjHQ1qdYerOhYalw&sdk=js&version=1.2.9&protocol=8&adaptive_ stream=1
Tracing the problem found that the candidate type is host (but the server)。 🙏
local livekit server candidate :
Copy code
"candidate":"candidate:431420294 1 tcp 2124414975 192.168.0.106 7881 typ host tcptype passive","sdpMid":"","sdpMLineIndex":0,"usernameFragment":null}
"candidate":"candidate:2756018790 1 udp 2130706431 192.168.0.106 7882 typ host","sdpMid":"","sdpMLineIndex":0,"usernameFragment":null}
remoter livekit server candidate :
Copy code
"candidate":"candidate:2562143777 1 udp 2130706431 xx.23.75.180 55412 typ host","sdpMid":"","sdpMLineIndex":0,"usernameFragment":null}
"candidate":"candidate:625231809 1 tcp 2124414975 xx.23.75.180 7881 typ host tcptype passive","sdpMid":"","sdpMLineIndex":0,"usernameFragment":null}