This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes how to check if a service is running on a port in a remote machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "how to check if a service is running on a port in a remote machine" Watch "how to check if a service is running on a port in a remote machine" New topic
Author

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

Pravin Jagan
Greenhorn

Joined: Feb 28, 2005
Posts: 27
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

Joined: Oct 29, 2001
Posts: 9137
    
    9

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.


[How To Ask Questions On JavaRanch]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: how to check if a service is running on a port in a remote machine
 
It's not a secret anymore!