| |
|
| java.lang.Object org.objectweb.jonas.common.NetUtils
NetUtils | public class NetUtils (Code) | | NetUtils is meant to provide routine network related information
to components of JONAS. One of the main purposes is to allow the
server to extract it's own IP address correctly. This addresses
a bug in java when dealing with Linux boxes on DHCP trying to
extract their own IP addresses and always getting the loop back
address instead of the external one.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4060691 author: Vivek Lakshmanan |
Method Summary | |
public static String | getLocalAddress() Get the string form of the local IP address and not naively assume
InetAddress.getLocalHost().getHostAddress() is the currect value. |
LOOP_BACK_ADDR | final public static String LOOP_BACK_ADDR(Code) | | |
getLocalAddress | public static String getLocalAddress() throws UnknownHostException(Code) | | Get the string form of the local IP address and not naively assume
InetAddress.getLocalHost().getHostAddress() is the currect value.
See the class description above for details.
A string representing the IPv4 localhost IP address. throws: UnknownHostException - |
|
|
|