How can I get my DNS servername and IPAddress, by just running a java program from command prompt, code help please
posted 13 years ago
Try InetAddress.getLocalHost().getHostName() and InetAddress.getLocalHost().getHostAddress(). This will give u both name and the address of the localhost. Hope this helps. If not give me a message. Vinod.