could not validate external IP","ip":"xx.xx.xx.xx","error":"context canceled
Describe the bug It will print the warn log could not validate external IP","ip":"47.98.xxx.xx","error":"context canceled every time i start the livekit server. The IP read is correct. Server
- Version: [1.8.0]
- Environment: [docker compose]
- any other information about your deployment setup
Expected behavior
clean the warnning log
Screenshots
how do you reproduce this?
docker compose content
services:
livekit:
image: livekit/livekit-server:v1.8.0
command: --config /etc/livekit.yaml
restart: unless-stopped
network_mode: "host"
volumes:
- /etc/localtime:/etc/localtime
- ./livekit-dev.yaml:/etc/livekit.yaml
config file content
port: 7880
bind_addresses:
- "0.0.0.0"
logging:
level: warn
json: true
pion_level: error
rtc:
tcp_port: 7881
udp_port: 7882
use_external_ip: true
enable_loopback_candidate: false
redis:
address: 172.22.1.113:6379
db: 11
turn:
enabled: false
tls_port: 5349
udp_port: 3478
external_tls: true
keys:
xxxxxxxxx: ddddddddddddddddd
webhook:
api_key: 'dddddddd'
urls:
- 'http://172.22.1.113:8880/v1/api/webhookEndpoint'
- 'http://172.22.1.113:8891/v1/api/webhookEndpoint'
room:
empty_timeout: 60
departure_timeout: 1
prometheus:
port: 6789
run command
docker compose up livekit -d
In China, cloud VPS can't fetch docker images ... How to do?
In China, cloud VPS can't fetch docker images ... How to do? vpn
I have the same Issue. Did you manage to solve this @leejiliang?
I'm also seeing this error, let me know if you need any more info to reproduce/diagnose.
=> use_external_ip: false (if that suits your needs)
I had similar error, I didn't unerstood @alexander-potemkin reply, so to had more context :
I first worked with a server with public IP, it was working fine with use_external_ip: true
Switching to a new server with only private IP, it failed with
livekit-sip | 2025-09-26T13:56:19.156Z WARN sip sip/config.go:80 could not resolve external IP {"nodeID": "NE_mFrrryGmhHBA", "error": "context deadline exceeded"}
I don't know what the code try to do (I guess something to get back the public IP used by NAT).
So to resume if you intend to use livekit-sip only for internal stuff with private IP :
use_external_ip: false
Didn't see documentation about this parameter