i have a home server but to connect my domain it must be connected to the public ip
but now it is connected to the internal ip how can I make it connect to the publice ip and my server software is Ubuntu 20.04.1 LTS
If your public IP is a dynamic IP, you need to use ddns to update it in real time.
If you have a static public IP, you only need to map the corresponding port on your router.
aaPanel_Jose thank you it worked