I am writing a standalone process. It is NOT web based. I need to get the localhost / hostname that the process is running on. How do I implement this using Java? Is there a method call? I could not find one. I see for URL's. But this is a standalone process.