video player (node.js) , it creates a web server on the machine running the player on a specific port and I'm trying to make an automatic checker (javascript) to find the IP on which the server is hosted, I'm doing it by checking the local IP the user is searching (mobile phone) and setting it to 1 and search one by one on which the port is up. So lets say the local IP of the pc is 192.168.1.40 and the port is 5555, the local IP of the phone is 192.168.1.34, the script start checking from 192.168.1.1:5555 to 192.168.1.255:5555 but I'm having problems like false positive or not showing it's up when it is. The current way I'm doing it is by trying to reach an image on the host, is there any better way to check it? Thanks so much
Don't iterate over IP's, use an autodiscovery tool like mdns
Обсуждают сегодня