Wrong public IP shown for host machine
Issue
A host machine may show the wrong public_ipaddr in Vast, even though the daemon is healthy and the actual WAN IP is different.
Example:
vastai show machine xxxx --raw | grep public_ipaddr
"public_ipaddr": "192.183.xx.xx",But actual public IP:
curl -s ifconfig.me 50.120.xx.xx
This can happen after:
- router reboot
- power outage
- ISP public IP change
Symptom
- Vast keeps showing an old/stale public IP
- self-test may timeout
- machine may become deverified/unlisted
Check
Ask the host to run:
ls -l /var/lib/vastai_kaaliaLook for this file:
host_ipaddrExample:
-rw-r--r-- 1 vastai_kaalia nogroup 14 Mar 18 04:40 host_ipaddrCause
A stale host_ipaddr file in /var/lib/vastai_kaalia can cause Vast to keep using the old public IP.
Solution
Remove the stale file and restart the Vast service:
sudo rm -f /var/lib/vastai_kaalia/host_ipaddr
sudo systemctl restart vastai.serviceThen verify again:
vastai show machine 583xx --raw | grep public_ipaddr curl -s ifconfig.me
If both IPs match, the issue is resolved.
Notes
- This issue is specifically about a stale registered public IP, not necessarily a daemon failure.
- If the machine is still showing the wrong IP after restart, wait a moment and recheck after the daemon reconnects.
Updated on: 17/06/2026
