Can not detect IP. [404]

When I install cyberpanel it gives this error, it seems that cyberpanel’s IP recognition server is very slow, in 30 seconds I still don’t have the correct IP wan result of my server

Server_IP=$(curl --silent --max-time 30 -4 https://cyberpanel.sh/?ip)

there should be a second attempt if the first attempt fails,

$ curl icanhazip.com
OR
$ curl -4 icanhazip.com
OR
$ curl -6 icanhazip.com