I know I can use my PC, I know I can host my own Server and I already did using kryonet and libgdx (this community helped by the way)
I was trying to ask about hosting online in 3rd, what I need ? something similar to Tomcat? dedicated server? VPS ?(thanks for the VPS suggestion, I'm testing some stuff here).
I know I didn't ask clearly, I could have been more specific.
This is what you say when someone is trying to understand or learn something?https://www.youtube.com/watch?v=TAryFIuRxmQ
Apache Tomcat is essentially a (java) web server. A web server in its simplest form is a program that listens for incoming connections on port 80 (web browsers do this automatically which is why you don't have to type it in the address bar) and sends (usually html) files back as a response from a specific folder.
The how and what kinds of agreed upon commands a web server should interpret and respond with is described in the hypertext transfer protocol (http) which is text based. Web browsers automatically render these html files as web pages.
If you have your own game server then you probably have your own custom networking system between your server and your clients. So all you need to do is run the server program on your "cloud computer" wherever it may be and simply connect to its IP and port number (or have a webserver in front to proxy specific requests to a subdomain or path locally to your server programs port) from your clients.
Cheap 5$/month VPS are a dime a dozen you can start to get your hands dirty with.