GonzaBarajas
It depends. Sometimes people use localhost during install which is only available to the local webserver. Other times people use the IP or host name. Regardless, it depends on how you set it up. In production setups you’d have a static public IP for the webserver then you register a domain name and create DNS records to point the registered domain to the IP. But again, this is all how you want to set it up. There are many guides online that go over how to configure a public website. They go over the steps in great detail and some even have images and videos.
Cheers.