How does electron-vue get client ip

how does electron-vue get client ip


install dependent npm install ip first

add
const ip = require ('ip') to the code;
const IPAddress = ip.address ();
console.log (IPAddress);


let interfaces = require ('os'). NetworkInterfaces ();

        for (let devName in interfaces) {
            let iface = interfaces[devName];
            for (let i = 0; i < iface.length; iPP) {
                let alias = iface[i];
                if (alias.family === 'IPv4' && alias.address !== '127.0.0.1' && !alias.internal) {
                    this.Ip=alias.address
                }
            }
        }
        
       
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e2ad-2c3e9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e2ad-2c3e9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?