Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to check if a service is running on a port in a remote machine

 
Pravin Jagan
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to check if a DB server is up or down running in a remote machine by giving the IP address and the port of the service. What java utility should I be using.
 
Joe Ess
Bartender
Posts: 9279
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use a socket.
I'd probably use JDBC to execute a query just to make sure the server is alive and working properly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic