posted 17 years ago
Sir ,we used the code as given below
InetAddress address = InetAddress.getLocalHost();
This returns the localHost Name, but we want the numerical IP address, which we want to take as a string.
There is also a method "getHostAddress()" , please tell us how to use this function,
please provide the code.
Thanks.
Amit
University of Florida