Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (804)
Games in Android Showcase (239)
games submitted by our members
Games in WIP (868)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  What I need to host a java server  (Read 9826 times)
0 Members and 1 Guest are viewing this topic.
Offline craftm

JGO Coder


Medals: 15
Projects: 1


_Keep Trying


« Posted 2015-12-12 20:37:00 »

To host an app online, I can deploy with Apache Tomcat. But to host a java server, what I need?

_ Wink
Offline pavul

Senior Devvie


Medals: 4
Exp: 4 years



« Reply #1 - Posted 2015-12-12 21:33:08 »

id depends of the kind of server you want to use, but if you want to make a game server,

create the server with Java SE and ( with the ports and all the logic of the game ), after that run the server,
the clients will be connected to the IP of your server in certain ports ( stablished for you )

in resume a server is like another program made with java but this is listening in certain port for connections and requests

its better not know why it works, that know why is not working
Offline jonjava
« Reply #2 - Posted 2015-12-13 00:55:39 »

A computer that is always connected to the internet from a static IP that you have control over.

VPS hosting is a simple and cheap way to get started. It's essentially a computer in the "cloud" that you connect to with root privileges over terminal/console/puTTY/ssh.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline noctarius

JGO Knight


Medals: 61


Manager Developer Relations @Hazelcast


« Reply #3 - Posted 2015-12-13 16:03:01 »

TBH, people asking those questions shouldn't host servers and shouldn't administrate servers. It'll only be a new spam system in a few days / weeks.

Offline cylab

JGO Kernel


Medals: 195



« Reply #4 - Posted 2015-12-13 17:07:43 »

...but people need to start somehow...

Mathias - I Know What [you] Did Last Summer!
Offline Riven
Administrator

« JGO Overlord »


Medals: 1371
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #5 - Posted 2015-12-13 22:50:18 »

Play with VirtualBox: it's free, easy to grasp, and it doesn't matter when you lock yourself out.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline pavul

Senior Devvie


Medals: 4
Exp: 4 years



« Reply #6 - Posted 2015-12-14 02:06:26 »

make your computer the host, and then use a DNS free like noip.com, you need to learn how to do it , before you use a profesional host,

or make you host locally

its better not know why it works, that know why is not working
Offline cylab

JGO Kernel


Medals: 195



« Reply #7 - Posted 2015-12-14 09:55:37 »

TBH, people asking those questions shouldn't host servers and shouldn't administrate servers. It'll only be a new spam system in a few days / weeks.

Ridiculous advice.
Well, it depends on the point of view. I am torn on this one, therefore I gave noctarius a medal AND replied that people should start somehow.

It's for sure not a task one should take lightly and go on naively installing everything with default settings or throw configuration you don't understand at it 'til it works, because this will lead to a new spam system ^^

So for hosting something by yourself, you should practice with some VM lab, do some research and have some practice (best would be a coaching by somebody working in the field). It might be fun, too...

Edit: And try to break/intrude it - this might be even more fun Wink

Mathias - I Know What [you] Did Last Summer!
Offline Cero
« Reply #8 - Posted 2015-12-16 15:07:46 »

Kinda agreed with jonjava



No purpose was specified, might as well have been a server for himself and to learn how to do it... so...

Offline craftm

JGO Coder


Medals: 15
Projects: 1


_Keep Trying


« Reply #9 - Posted 2015-12-16 19:35:27 »

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.

@noctarius
This is what you say when someone is trying to understand or learn something?

https://www.youtube.com/watch?v=TAryFIuRxmQ

_ Wink
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline jonjava
« Reply #10 - Posted 2015-12-16 20:19:56 »

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.

@noctarius
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.

Offline nsigma
« Reply #11 - Posted 2015-12-17 12:25:54 »

Cheap 5$/month VPS are a dime a dozen you can start to get your hands dirty with.

Get a cloud server from Digital Ocean - $5/month - they're awesome!  Wink

Slightly surprised that Tomcat isn't one of their one-click install options though.  Still, lots of documentation from them on how to set it up.

Praxis LIVE - hybrid visual IDE for (live) creative coding
Offline noctarius

JGO Knight


Medals: 61


Manager Developer Relations @Hazelcast


« Reply #12 - Posted 2015-12-18 06:40:55 »

@noctarius
This is what you say when someone is trying to understand or learn something?

No this is what I'm saying if somebody tries to do something he's obviously not ready for. Server administration is probably one of the hardest thing to get right. Try it at home, try it with virtual machines, nobody cares but using a VPS or dedicated system, not being able to administrate it (because you don't know better YET!) is a very very very bad idea and people will have taken over your system almost instantly. I've seen this so often in the past and it really is a very bad idea, just don't do it. Often hosters also just cut your connection if your dedicated is used for spam, ddos or similar things. It is up to you then, to somehow regain access - most often it means plain reinstall, go over configuration again, bla bla bla... It just doesn't make sense without at least basic knowledge on how to setup things right and your initial question just doesn't give the slightest feeling you know what you're doing, that's basically it.

Offline jonjava
« Reply #13 - Posted 2015-12-18 07:30:59 »

<snip> just don't do it. <snip>

I agree with @noctarius. Just don't do it. Pay him to do it for you.

Offline noctarius

JGO Knight


Medals: 61


Manager Developer Relations @Hazelcast


« Reply #14 - Posted 2015-12-18 07:48:30 »

<snip> just don't do it. <snip>

I agree with @noctarius. Just don't do it. Pay him to do it for you.

Never said that, actually I wouldn't even offer nor do it Smiley

Pages: [1]
  ignore  |  Print  
 
 

 
Riven (581 views)
2019-09-04 15:33:17

hadezbladez (5510 views)
2018-11-16 13:46:03

hadezbladez (2402 views)
2018-11-16 13:41:33

hadezbladez (5772 views)
2018-11-16 13:35:35

hadezbladez (1223 views)
2018-11-16 13:32:03

EgonOlsen (4661 views)
2018-06-10 19:43:48

EgonOlsen (5682 views)
2018-06-10 19:43:44

EgonOlsen (3198 views)
2018-06-10 19:43:20

DesertCoockie (4095 views)
2018-05-13 18:23:11

nelsongames (5115 views)
2018-04-24 18:15:36
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08
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
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!