ui()
{
 if(uiport==0) {
     server=null;
     loader_add_missing=OFF;
     loader_add_reloads=OFF;
     return;
 }

 if(uiadr!=null)

  try{
  server=new ServerSocket(uiport,10,uiadr);
  }
  catch(IOException e) {
      System.err.println("[SMARTCACHE] ERROR: Cannot bind to my UI port "+uiport+"/"+uiadr.getHostAddress()+"\n[SMARTCACHE] UI disabled, Reason: "+e);
      loader_add_missing=OFF;
      loader_add_reloads=OFF;
  }
   else
  try{
    server=new ServerSocket(uiport);
  }
  catch(IOException e) {
      System.err.println("[SMARTCACHE] ERROR: Cannot bind to my UI port "+uiport+"/*"+"\n[SMARTCACHE] UI disabled, Reason: "+e);
      loader_add_missing=OFF;
      loader_add_reloads=OFF;
  }
  /* get localhost if not set */
  if(ui_hostname==null) ui_hostname="127.0.0.1";
}