https://github.com/alphahydrae/port-tester
A minimal HTTP server that responds to any request with a user-provided string. Useful for testing port accessibility.
https://github.com/alphahydrae/port-tester
Last synced: 10 months ago
JSON representation
A minimal HTTP server that responds to any request with a user-provided string. Useful for testing port accessibility.
- Host: GitHub
- URL: https://github.com/alphahydrae/port-tester
- Owner: AlphaHydrae
- License: mit
- Created: 2025-08-23T17:40:26.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-23T20:59:30.000Z (11 months ago)
- Last Synced: 2025-08-24T07:13:16.648Z (11 months ago)
- Language: Rust
- Size: 34.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Port Tester
A minimal HTTP server that responds to any request with a user-provided string.
Useful for testing port accessibility.
[](https://github.com/AlphaHydrae/port-tester/actions/workflows/build.yml)
[](https://opensource.org/licenses/MIT)
## Usage
```sh
port-tester --exit-after 60 &
curl http://localhost:3000 # Hello, World!
```
With options:
```sh
port-tester "Test response" --port 8081 --exit-after 60 &
curl http://localhost:8081 # Test response
```
## Installation
Download the [latest release
here](https://github.com/AlphaHydrae/port-tester/releases).
## Configuration
| Option | Description | Default | Properties |
| ------------------------ | --------------------------------- | -------- | ------------------ |
| `--port, -p ` | Port to listen on | `3000` | `1–65535` |
| `--exit-after ` | Seconds before automatic shutdown | _(none)_ | `1–86400` (24 hrs) |
## Credits
GitHub Copilot did ~~pretty much all~~ most of the work.