public void Stop()
 {
     running = false;
     host.StopListening();
     thread = null;
 }