inder-utils
v1.0.142
Published
A package to get the main IP private and open port in your PC with Node.js
Downloads
10
Readme
Ip-Utils
Exemple Usage
const ipUtils = require('ip-utils');
(async () => {
try {
const privateIP = await ipUtils.getPrivateIP();
console.log(`Private IP: ${privateIP}`);
const port = await ipUtils.openPort(3000);
console.log(`Port ${port} opened.`);
} catch (err) {
console.error(err);
}
})();