GitShow/sindresorhus/internal-ip
sindresorhus

internal-ip

Get your internal IP address

by sindresorhus
Star on GitHubForknpm

JavaScript

350 stars26 forks10 contributorsQuiet · 6mo agoSince 2014v9.0.0MIT

Meet the team

See all 10 on GitHub →
sindresorhus
sindresorhus42 contributions
silverwind
silverwind23 contributions
Richienb
Richienb4 contributions
shellscape
shellscape1 contribution
arthurvr
arthurvr1 contribution
ChrisCindy
ChrisCindy1 contribution
BendingBender
BendingBender1 contribution
Marsup
Marsup1 contribution

Languages

View on GitHub →
JavaScript97.5%
TypeScript2.5%

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 →
silverwind
Remove `default-gateway` dependencyClosedIssue

See https://github.com/silverwind/default-gateway/issues/27. I intend to deprecate it soon because I just don't feel like maintaining these calls any more. This module should go back to being a simple parser of like linked here.

silverwind · 6mo ago
silverwind
Support the case of default gateway outside any subnetClosedIssue

The module currently assumes that the default gateway lies within one of the configured interface subnets but there are cases where this assumption does not hold true. One example is a Travis VM having with gateway . Strictly speaking, this is a invalid network configuration but it somehow still works so we need to account for it. One approach could be to find the address nearest to the gateway. It's a guess but chances are it might be correct. To get the nearest IPv6 adress conveniently, we need to convert both the address CIDR and gateway address to a BigInt and then compare them, so I would like to require native BigInt (node 10.4.0+).

silverwind · 6mo ago
lkmill
Do not normalize cidrMergedPR

This PR is an attempt to fix #48. I would like to add some tests, but this would require mocking a bunch of dependencies. Is this possible with ESM and Ava?

lkmill · 11mo ago
Structured data for AI agents

Repository: sindresorhus/internal-ip. Description: Get your internal IP address Stars: 350, Forks: 26. Primary language: JavaScript. Languages: JavaScript (97.5%), TypeScript (2.5%). License: MIT. Latest release: v9.0.0 (6mo ago). Open PRs: 0, open issues: 0. Last activity: 6mo ago. Community health: 85%. Top contributors: sindresorhus, silverwind, Richienb, shellscape, arthurvr, ChrisCindy, BendingBender, Marsup, Rodrigo54, SamVerschueren.

·@ofershap

Replace github.com with gitshow.dev