Hello World!
I’m trying to write a server application, for which I have a few Questions. My problem is, that I only want to have one active Serverinstance running at anytime. Because I only want to use the typical console on windows or the terminal on linux to run my server, I have the problem, that I can’t get my running server instance back, when I eventually close my Terminal/console. My Question is now, that I need a way to at least contact my earlier startet Serverinstance, even if I closed its Terminal, can someone show me a way to do that? My Idea is creating ServerSocket in my running Serverinstance, so that I have a way to contact it, but because it should only accept commands from localhost I don’t know how to write it the right way, so I would like, if I there is a way without a ServerSocket out there.
Another problem is the part, where I check for another Serverinstance has anyone an idea for that?
Greetings
biro