public static MDnsClient CreateAndResolve(string protocol) { MDnsClient client = new MDnsClient(new IPEndPoint(IPAddress.Any, 5353)); client.client.MulticastLoopback = true; //client.client.MulticastLoopback = true; client.client.JoinMulticastGroup(EndPoint.Address, 10); client.Resolve(protocol); return client; }
public static MDnsClient CreateAndResolve(string protocol) { MDnsClient client = new MDnsClient(new IPEndPoint(IPAddress.Any, 5353)); client.client.MulticastLoopback = true; //client.client.MulticastLoopback = true; client.client.JoinMulticastGroup(EndPoint.Address, 10); client.Resolve(protocol); return(client); }