How to find the ip of another computer in network node.js?
Hello!! The people in short I make nw.js a local game. And to connect to another computer in the program need the ip of the Host! The question is!!!
How can I get all ip address in local network?
I will appreciate anyone who reply☆☆
And izvenyayus for the mistakes I'm not Russian!
The wrong way is to take the address and netmask (from them one can calculate all possible addresses) and scan your network, find working computers.
Correct - one host needs to send to the local network broadcast with a certain interval, and the other to listen and to show the game.
Simple - to-local address on the second computer and display it to the user, the user will just tell it to the other player and he would bring his hands.