[java] Servers........

Started by
2 comments, last by SPAR 23 years, 7 months ago
I am wondering how to keep a server application running 24 hours a day, so that it is always available to a game. I understand how to operate the client and server once the server is listening to a port, but my question is how to you remotely invoke the server application to start running so that you may connect to it with a client application? thanks SPAR1
Advertisement
The standard way of does this is the have the server listening at some standard port all the time.

When a client connect through this port they use that connection to agree on some other session specific port, disconnect and then reconnect again at the new port - using a new thread to listen at the new port.

You cannot "invoke" a not running server program.

Jacob Marner
Jacob Marner, M.Sc.Console Programmer, Deadline Games
Thanks, unfortunately that''s what I thought.

If I find a way to do it I will let everyone know then.

l8er
normally, when a server program is run it doesn''t stop until explicitly instructed to stop. So, once the server program is running it should run until the computer loses power.

This topic is closed to new replies.

Advertisement