百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

pinging

> 编程语言
开源

Pinging.net - 监控您的互联网连接

100 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Pinging.net - 监控您的互联网连接

Pinging.net

Pinging.net quickly determines if you are online by running multiple tests. It then continues to monitor your connection via repeated tests including a "web ping" every second to help identify intermittent network issues.

Project goals

  • Reliable. Do not make the user guess if the website isn't loading because of their internet or if the website is down.
  • Fast website. Do not make the user wait, even on a slow connection. Time to first paint, total page size, and time to first test result should all be minimal.
  • Provide multiple tests that all work with just the browser.
  • Possible to understand test results for non-technical users.
  • Provide concise educational descriptions and links to learn more.
  • Allow for hosting outside of pinging.net (e.g. on private clouds).

Non-goals (currently):

  • Speed test. There are many websites that provide this and the hosting costs would increase dramatically.

The Tests

Web Ping

A Web Ping is sent every second. Ping is a common network testing utility. A packet is sent to a computer over the network which replies with a response packet. If and how fast a response is received help determine network connection quality. Normally ping packets are sent using the ICMP protocol but that is not possible from a web page. Instead a WebRTC data channel message is sent to and returned from the server. UDP is used for the underlying transport mechanism so dropped messages are not retried which is desired in order to determine packet loss.

The round trip time of each ping is graphed as a dark green horizontal line for each second. It is also displayed in milliseconds for the last received ping and the average for all successful pings.

Packet loss is when a ping response is not received. It is graphed as a red square. The percent of all pings that were lost is also displayed. Packet loss is caused by many different factors and potentially indicates issues with your internet connection.

HTTP Test

Makes a HTTP POST request with a random string body and verifies it is returned properly. Caching of the request is also explicitly disabled. This test is run every 30 seconds.

DNS Test

Test DNS is working by making a HTTP GET request to a [random-number]dns-check.. Caching is explicitly disabled and the random number part of the subdomain prevents common caching of the DNS lookup. This test is run every 30 seconds.

Browser Check

Web browsers report if they believe you are offline. If this check is failing it means you are likely not connected to your WiFi, cellular connection or ethernet cord. This is a basic check and it will often pass even if you are not connected. This check is continuously monitored by your browser.

Initial Load Check

Caching is disabled for this site so if this site loads it is a strong indication your internet is working at the time of loading the site.

Architecture

The backend is a single binary written in Rust that handles static file serving, APIs (including WebRTC), and www and https redirects. The frontend is static html and TypeScript. Pinging.net is deployed to inexpensive virtual private servers in multiple data centers and a DNS load balancer (currently CloudFlare) is used to route traffic to the closest server.

Since there is no protocol level load balancer (e.g. HTTP/WebRTC) or reverse proxy (e.g. no nginx), deployments are done by spinning up a new server and switching the DNS load balancer to use the new IP. The old IP is kept running for an hour to allow DNS caches to update and existing clients to refresh to the new server.

Building and Running

Ensure the following dependencies are installed:

  • rust
  • nodejs
  • npm
  • jq

Then run scripts/build (build only), scripts/run_locally (build and run locally), or scripts/deploy (build then deploy to IP address).

Currently only Linux is tested. I am open to contributions to help with developing or running on other platforms.

Docker

A Dockerfile is provided for building and running the server. To build the Docker image, run:

bash
docker build -t pinging:latest .

To run the Docker image, run:

bash
docker run --env-file ./configs/docker.env -p 8000:8000 -p 8888:8888/udp pinging:latest

Contributing

Contributions are welcome. Thanks in advance for your help.

Acknowledgements

Thanks to all of the authors of the dependencies and utilities that made pinging possible.

License and Copyright

Licensed under Apache-2.0. Copyrights are retained by their contributors.

Issues· 12 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言