0.1.0 • Published 4 years ago

@shaharmor/webrtc-private-ip v0.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

webrtc-private-ip

Get your private-ip using WebRTC

Install

$ npm install webrtc-private-ip

Or using a CDN:

<script src="https://unpkg.com/@shaharmor/webrtc-private-ip"></script>

Usage

(async () => {
  const ip = await webrtcPrivateIp();
  if (ip) {
    //ip => '192.168.1.1'
  }
})()

Limitations

  • Will only works when WebRTC mDNS is not enabled.
0.1.0

4 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago