I created a game with a server and client, and I do not know how to host it online(since my friend wants to join the game and we are not in the same network). If you guys know how please answer in the comments

Your mom is so fat, the recursive function calculating her mass caused a stack overflow

If you want more people, you will need a proper server.I would recommend getting a VPS.

Well, that usually costs money. Really, if your network protocol is good, you can host from home. A decent MORPG should only take around half a kilobyte per second, maybe even less. Its all about how you control the packets you're sending.

But then again, even getting DOSed at home(by bad people) isn't really good idea.

If you want more people, you will need a proper server.I would recommend getting a VPS.

Well, that usually costs money. Really, if your network protocol is good, you can host from home. A decent MORPG should only take around half a kilobyte per second, maybe even less. Its all about how you control the packets you're sending.

But then again, even getting DOSed at home(by bad people) isn't really good idea.

A VPS these days isn't that expensive, especially if it's just an experiment and you don't need a lot of resources. Hosting at home is bad.

You can get DDoS.You can't turn off your computer or router.You'll get complaints when it's down.Etc..

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org