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

https://github.com/gewoonjaap/ping-latency-cf-worker

CloudFlare worker that pings a given IP:port and returns the latency
https://github.com/gewoonjaap/ping-latency-cf-worker

cloudflare cloudflare-worker cloudflare-workers latency latency-test worker

Last synced: 6 days ago
JSON representation

CloudFlare worker that pings a given IP:port and returns the latency

Awesome Lists containing this project

README

        

![afbeelding](https://user-images.githubusercontent.com/33700526/211146688-b8058581-3ec3-44fd-911e-e5ecb64b7ddd.png)

# IP and Port Latency Checker
CloudFlare worker that pings a given IP:port and returns the latency

## Usage
`https://latency.mrproper.dev/?ip=127.0.0.1:80` or `https://latency.mrproper.dev?ip=127.0.0.1&port=80`

## Reponse
```json
{"latency":7}
```

Latency is in milliseconds

## Deploy
1. Clone this repo
2. Run `wrangler login`
3. Run `wrangler publish`