{"id":31535864,"url":"https://github.com/seanpfeifer/hostrelay","last_synced_at":"2026-05-15T13:07:25.011Z","repository":{"id":57649149,"uuid":"266664362","full_name":"seanpfeifer/hostrelay","owner":"seanpfeifer","description":"A dedicated relay server for P2P networking without exposing client IP addresses. ***You should probably use \"Steam Datagram Relay\" if you need a production-ready system for something similar.","archived":false,"fork":false,"pushed_at":"2020-12-02T07:35:57.000Z","size":20,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-04T06:29:56.829Z","etag":null,"topics":["go","networking","unity","unity3d"],"latest_commit_sha":null,"homepage":"","language":"Go","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/seanpfeifer.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}},"created_at":"2020-05-25T02:23:01.000Z","updated_at":"2025-04-30T18:16:07.000Z","dependencies_parsed_at":"2022-09-21T13:50:34.607Z","dependency_job_id":null,"html_url":"https://github.com/seanpfeifer/hostrelay","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/seanpfeifer/hostrelay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanpfeifer%2Fhostrelay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanpfeifer%2Fhostrelay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanpfeifer%2Fhostrelay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanpfeifer%2Fhostrelay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seanpfeifer","download_url":"https://codeload.github.com/seanpfeifer/hostrelay/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanpfeifer%2Fhostrelay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33067518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["go","networking","unity","unity3d"],"created_at":"2025-10-04T06:15:32.546Z","updated_at":"2026-05-15T13:07:25.001Z","avatar_url":"https://github.com/seanpfeifer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Host Relay Prototype\n\nThe point of this is to be a dedicated relay server for multiplayer applications with two needs:\n\n* Reliable, ordered data transmission (TCP-like)\n* Unreliable data transmission (UDP)\n\nThis exists to allow players to join games that don't need dedicated server logic.\n\n**DISCLAIMER: This is a hacked together prototype and should not be used in production! Code will change without warning and nothing is guaranteed!**\n\n## What this **doesn't have**\n\n* Anti-cheat\n* Data sanity checking\n* Anti-spam/congestion control\n* Complex authentication\n\n## Basic design\n\n* TCP socket listening for connections\n  * Each connection is stored\n* UDP socket to listen for messages from each player\n  * Broadcast each received message to the rest of the connected players\n\n## Building \u0026 running\n\n```sh\ngo run .\\cmd\\server\n```\n\nTo run a test client in TCP mode:\n\n```sh\ngo run .\\cmd\\client\n# Input strings and press enter to send. Type `exit` to quit.\n```\n\nFor UDP:\n\n```sh\ngo run .\\cmd\\client -udp\n# Input strings and press enter to send. Type `exit` to quit.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanpfeifer%2Fhostrelay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseanpfeifer%2Fhostrelay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanpfeifer%2Fhostrelay/lists"}