public virtual void StartBroadcast(DiscoveryType type, string hostName, string location = "undefined", string code = "-1") { var t = new Thread(() => { StopBroadcast(); _broadcast.Start(type, hostName, location, code, Net.GetUrl(Ip, Port, "")); }) { IsBackground = true }; t.Start(); }