I\'m using the following code to retrieve the client IP in my electron application:
const fnOSIP = () => { const nets = networkInterfaces(); const results = Object