Created
March 31, 2020 21:51
-
-
Save constgen/1fe6bd345a42fd8c02dcc9fe0236b28a to your computer and use it in GitHub Desktop.
Get local IP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let internalIp = require('internal-ip'); | |
let host = internalIp.v4.sync() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment