friedrith / node-wifi

📶 NodeJS tool to manage wifi (connections, scans)
MIT License
396 stars 161 forks source link

How can i see ip address when i connect to wi-fi ? #160

Closed zababurinsv closed 2 years ago

zababurinsv commented 2 years ago

When I establish a connection, I don't know how to look at the ip address of the connection.

let connect = wifi.connect({ ssid: 'cccccc.Zb', password: 'ccccc$6' }, error => {
    if (error) {
        console.log(error);
    }
    console.log('Connected');
}

I would like to be able to get the ip address of the connection.

example

let connect = wifi.connect({ ssid: 'cccccc.Zb', password: 'ccccc$6' }, (error, response) => {
    if (error) {
        console.log(error);
    }
    console.log('Connected', response.ipAddress);
}
friedrith commented 2 years ago

Sorry for the delay. Do you know how to get this information on the differents linux, windows and macOS API?

zababurinsv commented 2 years ago

Sorry i

friedrith commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.