udp-ip

1.0.0 • Public • Published

udp-ip

get my ip by udp, inspired from python

usage

const udp_ip = require('udp-ip')

udp_ip().then(console.log).catch(console.log)

// { address: '192.168.3.20', family: 'IPv4', port: 42507 }

test

npm test

/udp-ip/

    Package Sidebar

    Install

    npm i udp-ip

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    1.12 kB

    Total Files

    4

    Last publish

    Collaborators

    • fanlia