GitShow/sindresorhus/internal-ip
sindresorhus

internal-ip

Get your internal IP address

by sindresorhus
Star on GitHubForknpm

JavaScript

350 stars27 forks10 contributorsQuiet · 5mo agoSince 2014MIT

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

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 · 5mo 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 · 5mo 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 · 9mo ago
Structured data for AI agents

Repository: sindresorhus/internal-ip. Description: Get your internal IP address Stars: 350, Forks: 27. Primary language: JavaScript. License: MIT. Open PRs: 0, open issues: 0. Last activity: 5mo ago. Top contributors: sindresorhus, silverwind, Richienb, shellscape, arthurvr, ChrisCindy, BendingBender, Marsup, Rodrigo54, SamVerschueren.

·@ofershap

Replace github.com with gitshow.dev