{"id":22246339,"url":"https://github.com/thgossler/servicediscovery","last_synced_at":"2026-04-28T14:34:52.842Z","repository":{"id":248295046,"uuid":"827883721","full_name":"thgossler/ServiceDiscovery","owner":"thgossler","description":"An simple example .NET implementation of a service discovery mechanism similar to Apple Bonjour.","archived":false,"fork":false,"pushed_at":"2024-07-13T19:01:41.000Z","size":201,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-02T03:05:12.620Z","etag":null,"topics":["cli","client","csharp","discovery","dotnet","example","library","service","simple"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thgossler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-12T15:31:46.000Z","updated_at":"2024-07-14T05:00:07.000Z","dependencies_parsed_at":"2024-07-13T19:55:32.856Z","dependency_job_id":null,"html_url":"https://github.com/thgossler/ServiceDiscovery","commit_stats":null,"previous_names":["thgossler/servicediscovery"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thgossler/ServiceDiscovery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgossler%2FServiceDiscovery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgossler%2FServiceDiscovery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgossler%2FServiceDiscovery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgossler%2FServiceDiscovery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thgossler","download_url":"https://codeload.github.com/thgossler/ServiceDiscovery/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thgossler%2FServiceDiscovery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32385269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","client","csharp","discovery","dotnet","example","library","service","simple"],"created_at":"2024-12-03T05:27:12.961Z","updated_at":"2026-04-28T14:34:52.827Z","avatar_url":"https://github.com/thgossler.png","language":"C#","funding_links":["https://github.com/sponsors/thgossler","https://www.paypal.com/donate/?hosted_button_id=JVG7PFJ8DMW7J"],"categories":[],"sub_categories":[],"readme":"\u003c!-- SHIELDS --\u003e\n\u003cdiv align=\"center\"\u003e\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n\u003c/div\u003e\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ch1 align=\"center\"\u003eServiceDiscovery\u003c/h1\u003e\n\n  \u003cp align=\"center\"\u003e\n    A simple example .NET implementation of a distributed service discovery mechanism similar to Apple Bonjour.\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/thgossler/ServiceDiscovery/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/thgossler/ServiceDiscovery/issues\"\u003eRequest Feature\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/thgossler/ServiceDiscovery#contributing\"\u003eContribute\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/sponsors/thgossler\"\u003eSponsor project\u003c/a\u003e\n    ·\n    \u003ca href=\"https://www.paypal.com/donate/?hosted_button_id=JVG7PFJ8DMW7J\"\u003eSponsor via PayPal\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\n## Description\n\nAn simple example .NET implementation of a distributed service discovery mechanism similar to Apple Bonjour. \nIt should be compliant to the DNS Service Discovery (DNS-SD RFC 6763) over Multicast DNS (mDNS RFC 6762) standard.\nSupport for announcing and discovering multiple services in parallel is implemented. The service to service \ncommunication can also be secured (Https) with a server certificate. The mDNS communication is not secured\nin this simple implementation.\n\nCreated with help of GitHub Copilot and ChatGPT.\n\n\n## Architecture\n\n![Architecture Diagram](Architecture.drawio.png)\n\n\n## Usage\n\nJust build the project and execute the DiscoveryClient executable 3 times somewhere in the same network, like:\n\nComputer 1: `DiscoveryClient.exe 1`\n\nComputer 2: `DiscoveryClient.exe 2`\n\nComputer 3: `DiscoveryClient.exe 3`\n\nThe 3 different instances of the executable can also be started on the same computer.\n\nThey are all just starting and waiting until the 2 others have also started and been discovered, and then\nthey call each other in the mesh and combine their results into the output string \"Hello world!\" \n(instance 1 =\u003e \"Hello\", instance 2 =\u003e \"world\", instance 3 =\u003e \"!\"). All clients exit once they have achieved\ntheir goal.\n\nThe `MdnsServiceDiscovery` library can handle any number of clients. Just this `DiscoveryClient` console \nexample app is using exactly 3 service instances to demonstate the dynamic discovery and\ncollaboration based on roles.\n\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star :wink: Thanks!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\n## Donate\n\nIf you wish to use the tool but are unable to contribute, please consider donating an amount that reflects its value to you. You can do so either via PayPal\n\n[![Donate via PayPal](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/donate/?hosted_button_id=JVG7PFJ8DMW7J)\n\nor via [GitHub Sponsors](https://github.com/sponsors/thgossler).\n\n\n## License\n\nDistributed under the MIT License. See [`LICENSE`](https://github.com/thgossler/ServiceDiscovery/blob/master/LICENSE) for more information.\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES (https://www.markdownguide.org/basic-syntax/#reference-style-links) --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/thgossler/ServiceDiscovery.svg\n[contributors-url]: https://github.com/thgossler/ServiceDiscovery/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/thgossler/ServiceDiscovery.svg\n[forks-url]: https://github.com/thgossler/ServiceDiscovery/network/members\n[stars-shield]: https://img.shields.io/github/stars/thgossler/ServiceDiscovery.svg\n[stars-url]: https://github.com/thgossler/ServiceDiscovery/stargazers\n[issues-shield]: https://img.shields.io/github/issues/thgossler/ServiceDiscovery.svg\n[issues-url]: https://github.com/thgossler/ServiceDiscovery/issues\n[license-shield]: https://img.shields.io/github/license/thgossler/ServiceDiscovery.svg\n[license-url]: https://github.com/thgossler/ServiceDiscovery/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthgossler%2Fservicediscovery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthgossler%2Fservicediscovery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthgossler%2Fservicediscovery/lists"}