You must have a static (dedicated) IP from a provider that belongs only to you. If dynamic and is used not only by you, but also by other users of the network, then nothing will work right away.
Further, if you are connected through a router, and the router distributes the Internet, you need to forward the port to your static IP and connect it to the local machine via NAT and configure access rights on the local machine itself.
If you connect to the network directly on your computer (you are connecting to the Internet), then you just need to allow access through the firewall.
Next, you need your Apache to be configured on the external interface of the network card, and not on the internal one and everything will work.
If you want to expand the site, then do not do it on a local machine, buy hosting and get more benefits from its use.