• Advertisement

Archived

This topic is now archived and is closed to further replies.

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

This topic is 6332 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Thanks, unfortunately that''s what I thought.

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

l8er

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement