Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9289971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:18:25+00:00 2026-06-18T20:18:25+00:00

Objective: I want to make a java program containing a boolean that checks every

  • 0

Objective: I want to make a java program containing a boolean that checks every 5 minutes to see if my games server (cloudnine1999.no-ip.org:port 43594)

Purpose: To restart my game server if it crashes

Problem: Not sure how to check if a server is online using java.

Programs Function: If the boolean returns false(meaning the server is offline) I want the java program to open a specific batch file so the server starts up(in case the server crashes)

I tried finding something on google but I didn’t find anything helpful and I’m not quite advanced enough of a coder to figure this out on my own, all I need is someone to instruct me/point me in the right direction of coding a server status checker with java and I can do the rest from there.

I may not be able to respond to your answers until around 4PM Central Us&Canada time zone.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T20:18:26+00:00Added an answer on June 18, 2026 at 8:18 pm

    Use Socket to check if the server is up (if it can connect to the IP and Port without throwing an exception). Be careful, some servers don’t like these ’empty’ connections.

    try{
        new Socket("cloudnine1999.no-ip.org", 43594).close();
    }catch(IOException ex){
        // Server probably down, restart it...
    }catch(Exception ex){
        // Some  other problem, likely DNS or security related.
    }
    

    Use ProcessBuilder to start it up again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make a copy-paste application. How do I develop an Objective-C program
i am very new to objective-c, but i want to make some app that
Objective: I want to create a web service that allows me to connect to
I want to use/reuse C++ object with Objective-C. I have a hello.h that has
Hey guys, I'm starting to play around with Objective-C and I want to make
I have this string (2.5+1)*5 I want to make a NSMutableArray containing each of
I want to make some simple 2d games/clones (for Mac), but I have a
I want to create a program that stream the screen of my Mac to
I want to make a tableview containing our stores - sectioned by city. The
I want make a UIImage's touched pixel to transparent. I saw the iPhone Objective

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.