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

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

$ curl
$ curl -4
$ curl -6