Much will depend on your network set-up and is beyond the scope of a single answer.
Try with my Miln Beyond application to confirm your primary outgoing IP address, and if a NAT or UPnP device is on your network. This is to test if the devices are configurable and your network is truly publicly accessible.
Use Beyond's Beyond Network window to see your computer and network's assigned IP addresses:
Do you have another computer or device on a separate network, such as a mobile phone with a data (non-wifi) connection? Use this second device to test access to your server. Testing access using the same network can provide misleading results.
If this works, then you can achieve the same via the command line and Apache
Unverified potentially accessible address. Provided by local Network Address Translation (NAT) or Universal Plug and Play (UPnP) device.
An "unverified" address is potentially accessible from the Internet. It is unverified only because Beyond has not actively checked it (that requires a membership).
The listing also suggests that your router supports NAT or UPnP to open external ports and allow incoming traffic.
Does your Internet router have a web interface? The router is a device often supplied by your Internet Service Provider (ISP). If so, look for NAT or UPnP settings; these may also be called Port Forwarding.
By default, your router should block incoming traffic from the Internet into your network. To offer a server to the wider Internet, your router needs to be told to accept specific incoming traffic and to pass it to the server inside your network.
For short lived servers and services, like video/voice calls, NAT and UPnP are used. This is what Beyond has managed to do on your network.