public String toString(){
  try {
    return "IPAddress: " + getName();
  }
 catch (  IOException ioe) {
    HexDumpEncoder enc=new HexDumpEncoder();
    return "IPAddress: " + enc.encodeBuffer(address);
  }
}

public String toString ( ) { try { return "IPAddress: " + getName ( ) ; } catch ( IOException ioe ) { HexDumpEncoder enc = new HexDumpEncoder ( ) ; return "IPAddress: " + enc . encodeBuffer ( address ) ; } }
return a printable string of ipaddress
