{"id":24199309,"url":"https://github.com/nixigaj/wut-server","last_synced_at":"2026-06-08T19:31:07.624Z","repository":{"id":226819408,"uuid":"754050402","full_name":"nixigaj/wut-server","owner":"nixigaj","description":"A simple HTTP(/2) server written in Rust, made for one thing, and one thing only: securely echoing your public IP-address as fast as possible.","archived":false,"fork":false,"pushed_at":"2024-03-09T21:49:02.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T09:26:41.604Z","etag":null,"topics":["blazingly-fast","http2","hyper","ip","ip-address","ipv4","ipv6","public-ip","rust","server","wut"],"latest_commit_sha":null,"homepage":"https://ip.erix.dev:11313","language":"Rust","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/nixigaj.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}},"created_at":"2024-02-07T09:56:18.000Z","updated_at":"2024-02-07T09:57:34.000Z","dependencies_parsed_at":"2024-03-09T22:38:51.487Z","dependency_job_id":"3bd93379-21ea-4323-9cdc-9b85c8c0bc7c","html_url":"https://github.com/nixigaj/wut-server","commit_stats":null,"previous_names":["nixigaj/wut-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nixigaj/wut-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixigaj%2Fwut-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixigaj%2Fwut-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixigaj%2Fwut-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixigaj%2Fwut-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nixigaj","download_url":"https://codeload.github.com/nixigaj/wut-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixigaj%2Fwut-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34078019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["blazingly-fast","http2","hyper","ip","ip-address","ipv4","ipv6","public-ip","rust","server","wut"],"created_at":"2025-01-13T20:35:28.168Z","updated_at":"2026-06-08T19:31:07.597Z","avatar_url":"https://github.com/nixigaj.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg align=\"left\" alt=\"wut icon\" src=\"icon.svg\" height=\"128\" style=\"margin-right: 1rem\" /\u003e\n\n# `wut` server\nThis is a simple HTTP(/2) server written in Rust,\nmade for one thing, and one thing only: securely echoing your public IP-address as fast as possible. It is made for the [`wut` cli tool](https://github.com/nixigaj/wut), and I use it for [ip.erix.dev:11313](http://ip.erix.dev:11313).\n\n## Non-scientific comparison with Nginx\n### Server\n| CPU                        | RAM      | Uplink   |\n|----------------------------|----------|----------|\n| Single core AMD EPYC 7302P | 1 GB ECC | 1 Gbit/s |\n\n### Client\n| CPU            | RAM       | Uplink     |\n|----------------|-----------|------------|\n| AMD Ryzen 5600 | 32 GB ECC | 250 Mbit/s |\n\nThe tool used for the benchmark is [wrk](https://github.com/wg/wrk). The bottleneck in this test will be the server CPU.\n\n### Nginx\nNginx has all optimization options enabled, headers stripped with the [ngx_headers_more module](https://github.com/openresty/headers-more-nginx-module), and is compiled with static OpenSSL and LTO.\n\n#### Config\n```nginx\nload_module modules/ngx_http_headers_more_filter_module.so;\n\npid /var/run/nginx.pid;\n\nworker_processes 1;\n\nevents {\n\tworker_connections 1024;\n}\n\nhttp {\n\tsendfile on;\n\tserver_tokens off;\n\tmore_clear_headers \"Server\";\n\tmore_clear_headers \"X-Powered-By\";\n\tmore_clear_headers \"content-type\";\n\n\thttp2 on;\n\tssl_protocols TLSv1.3;\n\tssl_early_data on;\n\tssl_certificate \u003ccert path\u003e;\n\tssl_certificate_key \u003ckey path\u003e;\n\n\tserver {\n\t\treturn 200 \"$remote_addr\";\n\t\tlisten [\u003cIPv6\u003e]:443 ssl;\n\t\tlisten \u003cIPv4\u003e:443 ssl;\n\t}\n}\n```\n\n#### Benchmark\n```\nRunning 10s test @ https://ip.erix.dev\n  6 threads and 1000 connections\n  Thread Stats   Avg      Stdev     Max   +/- Stdev\n    Latency    28.07ms   10.63ms 520.46ms   86.30%\n    Req/Sec     4.36k     0.96k    6.54k    72.18%\n  257322 requests in 10.03s, 27.98MB read\n  Socket errors: connect 95, read 17, write 0, timeout 0\nRequests/sec:  25650.31\nTransfer/sec:      2.79MB\n```\n\n### `wut` server\n\n#### Benchmark\n```\nRunning 10s test @ https://ip.erix.dev:11313\n  6 threads and 1000 connections\n  Thread Stats   Avg      Stdev     Max   +/- Stdev\n    Latency    45.00ms   50.48ms 279.57ms   78.59%\n    Req/Sec     6.41k     1.23k    8.65k    83.47%\n  382057 requests in 10.02s, 32.79MB read\nRequests/sec:  38110.60\nTransfer/sec:      3.27MB\n```\n\nThat is about 49% more requests per second. Additionally, some socket errors were encountered with Nginx.\n\n## Usage\n```\nUsage: wut-server [OPTIONS] --cert-path \u003cCERT_PATH\u003e --key-path \u003cKEY_PATH\u003e\n\nOptions:\n  -b, --bind \u003cBIND\u003e                  Address to bind to, with optional port (can be provided multiple times) [default: 127.0.0.1:11313 [::1]:11313]\n  -c, --cert-path \u003cCERT_PATH\u003e        Certificate file path\n  -k, --key-path \u003cKEY_PATH\u003e          Key file path\n  -i, --log-interval \u003cLOG_INTERVAL\u003e  Log interval in seconds [default: 60]\n  -2, --http2-only                   Use HTTP/2 only\n  -h, --help                         Print help\n  -V, --version                      Print version\n```\n\n## Planned features\n\n- Automatic hot reload of certificates when files on disk change.\n\n## License\nAll files in this repository are licensed under the [MIT License](LICENSE).\n\nThe icon is a reference to the [Confused Nick Young / Swaggy P](https://knowyourmeme.com/memes/confused-nick-young-swaggy-p) meme.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixigaj%2Fwut-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnixigaj%2Fwut-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixigaj%2Fwut-server/lists"}