You do not need a server to host the application - you need a server to access via the Internet. There are many ways to do this.
To access your web server application, I need to know the IP address of your computer. Let's say you can give me your public IP address (find it in What Is My Ip , specify the address I, and let me know which port to connect to.
Eg. The stackoverflow has an IP address of 104.16.34.249 , but you can only have an IPv6 address, regardless. Now keep in mind that most home Internet providers have the habit of restarting your public IP address every day.
Next, you give me your application port, for example. 8080.
So, I will try to get https://104.16.34.249:8080/ (or http://104.16.34.249:8080/ , depending on your application).
But in most scenarios I wouldn’t hit either your router. So, step 2: tell the router that it sends traffic on this port to your computer. You may have a simple port forwarding configuration or for example. put the computer in the dmz. (How to do all this is another question, perhaps on ServerFault or SuperUser).
So now I can access your application from interwebz.
But you probably want me to use some kind of permanent name, not a permanent IP address. This way, you register for a service like DynDNS or No-IP, and install your little fragment on your computer or router, and they give you something like a home host name, for example. http://best-home-webserver-that-will-never-run-out-of-electricity.dyndns.com/ or http://my-cool-app.no-ip.com/ .
Talk about activating your game, huh?
But what if you want a "real" domain name, your own, for example, " http://i-have-webz.com:8080/ "? So, your next step is to buy this domain from someone like Namecheap, and then configure DNS to indicate your IP address (if it is static, that is, if it does not change constantly) or as an alias to your no-ip / dyndns (dynamic) hostname.
The next good step would be something like getting the right UPS, as well as a diesel generator, when you did not have enough power, renting another DSL line from another provider in a different cycle (so that you have, for example, one cable and one fiber optic line ) to back up, or perhaps borrow wireless access from your neighbor for this purpose, introduce cyclic dns material growing from it a huge business, and then transfer it all to Amazon.
What is described above are high-level steps for just one way to process your script. This is not a very complete path, not exhaustive of possible traps. There are many, perhaps better ways to do many or all of the steps.