示例#1
0
 // inherit doc comment
 public InetAddress getInetAddress() {
   try {
     return InetAddress.getByName(NetworkUtils.ip2string(networkManager.getAddress()));
   } catch (UnknownHostException e) {
     // may want to do something else here if we ever use this!
     return null;
   }
 }
示例#2
0
 public String getAddress() {
   return NetworkUtils.ip2string(networkManager.getAddress());
 }