Results 1 to 7 of 7
  1. #1
    nickburris is offline Member
    Join Date
    Jan 2011
    Posts
    30
    Rep Power
    0

    Default How to check if a login server is online?

    I want my program to check if a login server is online, and if so, launch a program.
    I have the login server's IP address, so all I need is a way to check if it's online/available.

    Thanks for any help!

  2. #2
    JeffGrigg is offline Member
    Join Date
    Aug 2011
    Posts
    95
    Rep Power
    0

    Default

    ping <ip-address>

  3. #3
    nickburris is offline Member
    Join Date
    Jan 2011
    Posts
    30
    Rep Power
    0

    Default

    I tried this method Learn Java by Examples - How do I ping a host?
    But InetAddress seemed to return a false result (It said the IP address wasnt reachable, although I'm 100% sure it is).
    Are there any other methods?

  4. #4
    JeffGrigg is offline Member
    Join Date
    Aug 2011
    Posts
    95
    Rep Power
    0

    Default

    This might explain why it is not working:
    How to do a true Java ping from Windows? - Stack Overflow

  5. #5
    JeffGrigg is offline Member
    Join Date
    Aug 2011
    Posts
    95
    Rep Power
    0

    Default

    A couple of ideas here:
    Ping Class java

    ...including running the PING program.

  6. #6
    nickburris is offline Member
    Join Date
    Jan 2011
    Posts
    30
    Rep Power
    0

    Default

    From what I've read "Ping"-ing in Java is not that good, so I'm going to have to do the ping test in C++, then some how call it in Java.. no idea how to do this though Can someone maybe lead me to a tutorial on how I'd do this?

  7. #7
    JeffGrigg is offline Member
    Join Date
    Aug 2011
    Posts
    95
    Rep Power
    0

Similar Threads

  1. Replies: 0
    Last Post: 10-26-2010, 07:53 AM
  2. Replies: 7
    Last Post: 05-29-2010, 01:57 PM
  3. Check SMTP server status
    By sandeep.ctg in forum New To Java
    Replies: 4
    Last Post: 04-02-2010, 05:45 PM
  4. Check SMTP server status
    By sandeep.ctg in forum Java Servlet
    Replies: 0
    Last Post: 03-31-2010, 08:10 AM
  5. SQL server 2005 - Login failed message
    By pbaudru in forum JDBC
    Replies: 15
    Last Post: 02-10-2010, 11:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •