An open API service indexing awesome lists of open source software.

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.

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.

[![build](https://github.com/AlphaHydrae/port-tester/actions/workflows/build.yml/badge.svg)](https://github.com/AlphaHydrae/port-tester/actions/workflows/build.yml)
[![MIT License](https://img.shields.io/static/v1?label=license&message=MIT&color=informational)](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.