For that you would need to run your local machine as a server and then open a port for external access…but then you would still only have your present URL, I believe, unless you first registered a Domain somewhere and had its DNS pointed to your server.
you need to have a registered domain and then find a hosting service, then they will give you all the info you need to set it all up. it’s better to have your domain and host separate. go daddy and name cheap are the most popular for registering a domain. and there’s a bunch of different hosts to choose from.
Thank you for your replies,
so for example if I went to name cheap as mentioned and bought the domain name I desired, where would I go from there?
Would I have to pay yearly to maintain this domain?
I pay annually for domain registry, and yes, I believe that is typical. However, you might want to shop around a bit since not all Registrars charge the same fees and might even add domain privacy for free.