GitShow/sindresorhus/is-reachable
sindresorhus

is-reachable

Check if servers are reachable

by sindresorhus
browserconnectivitydetectinternetnetworknodejsonlineping
Star on GitHubForknpm

JavaScript

383 stars42 forks18 contributorsQuiet · 5mo agoSince 2015v6.1.0MIT

Meet the team

See all 18 on GitHub →
sindresorhus
sindresorhus65 contributions
silverwind
silverwind62 contributions
kevva
kevva2 contributions
genbandbrent
genbandbrent1 contribution
danielmahon
danielmahon1 contribution
BendingBender
BendingBender1 contribution
jleft
jleft1 contribution
johno
johno1 contribution

Languages

View on GitHub →
JavaScript94.4%
TypeScript5.6%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
ccll
Why router IPs are considered unreachable?ClosedIssue

Hi there, I've currently hit by a bug in another software (Gitpod) which uses 'is-reachable' to test the reachability of hosts, digging into the source codes leads me here, I'm not sure if it's relevant so I opened up an issue to discuss it a bit, feel free to close it if inappropriate. The situation is one of my services is hosted in a home lab setup which IP address is exact , which by 'router-ips' is considered an router IP, and 'is-reachable' thought the router IPs are 'unreachable' and returned a to the caller, thus, my host is determined to be 'not reachable' while it's perfectly reachable. Relevant code here: https://github.com/sindresorhus/is-reachable/blob/main/index.js#L55 I'm not sure I understand the rationale behind the decision, maybe logically 'is-reachable' should only check the 'reachability', whether it's an internal router IP or a normal external IP should be irrelevant, or am I missing something here?

ccll · 5mo ago
hckhanh
Use IP instead of hostnameClosedIssue

When I try to use IP instead of the domain name. It returns false even if the IP has existed. Can we support it?

hckhanh · 5mo ago
coonpatto
Offline if host has CloudflareClosedIssue

not sure if this project is still continued, but it doesnt seem to detect if a host is online if they have cloudflare on the site.

coonpatto · 5mo ago
Structured data for AI agents

Repository: sindresorhus/is-reachable. Description: Check if servers are reachable Stars: 383, Forks: 42. Primary language: JavaScript. Languages: JavaScript (94.4%), TypeScript (5.6%). License: MIT. Topics: browser, connectivity, detect, internet, network, nodejs, online, ping, reachability. Latest release: v6.1.0 (5mo ago). Open PRs: 0, open issues: 0. Last activity: 5mo ago. Community health: 85%. Top contributors: sindresorhus, silverwind, kevva, genbandbrent, danielmahon, BendingBender, jleft, johno, arthurvr, mmalecki and others.

·@ofershap

Replace github.com with gitshow.dev