Net Scan

Terry Hendrix

Watch devices on your local network by scanning for TCP ports

Scan your (local) network with your homey. It currently only supports TCP port scans, but this can be done on an IP only basis. I’ve created this app to detect if my Xbox 360 is turned on, but really most devices can be detected by this app. All it requires is an IP address (and an open port). It’s important to assign your devices a constant IP, either through a DHCP reservation or a static IP. Buy me a beer If you like this app Adding devices Step 1 - Determine IP address Lookup for the IP address of the device you want add. Most routers support this on their admin UI’s. Step 2 - Determine port Now you have to determine which port you want to add. First install the nmap shell utility. Mac OSX: brew install nmap Linux: yum install nmap or apt-get install nmap or use another package manager. Windows: Follow instructions on nmap.org Now you may scan the IP that you’ve just looked up. It’s 10.0.0.246 in my case, which is my Xbox 360. Execute nmap -Pn 10.0.0.246 on the shell or command prompt (for windows). I get the following output: Starting Nmap 6.47 ( http://nmap.org ) at 2016-10-09 12:46 CEST Nmap scan report for 10.0.0.246 Host is up (0.0027s latency). Not shown: 999 filtered ports PORT STATE SERVICE 1025/tcp open NFS-or-IIS Nmap done: 1 IP address (1 host up) scanned in 6.68 seconds This shows that the NFS service is running on TCP port 1025. No open port found? No biggie, use the IP driver. Step 3 - Add the device Now that we’ve got all information present, it’s time to add the device. 1. Select the TCP port driver if you have found an open port, select the IP address driver if you have not found an open port. 2. Then fill out the form with the IP address (and TCP port) we’ve just looked up. Also give it a name. 3. You’re done. Drivers TCP Port The TCP port driver allows to watch a TCP port on a specified IP-address. TCP Port Triggers - Device came online - Device went offline TCP Port conditions - Device is online - Device is offline IP Address The IP Address driver can be used to detect a device by ip address. Since ICMP (ping) is prohibited on Homey, I did the next best thing: Scan for closed TCP ports. IP Address Triggers - Device came online - Device went offline IP Address conditions - Device is online - Device is offline Release history 0.3.0 - Experimental IP only driver added. Only works if the device has closed TCP ports. Ports should not be stealth to have this work. 0.2.2 - Sanity check added. When a device went offline, another check will be performed to ensure it is really offline. - Also added a sanity check for the conditions. - Bugfixes. 0.2.1 - Bugfixes. 0.2.0 - Bugfixes. - Added configurable host check interval and timeout. 0.1.0 - Initial port scan implementation.

Supported devices

TCP port
IP address

Reviews

This app has no reviews yet.

You can leave a review once you're using this app.

Thank you for your review.

Submit review

Write a review

Install Net Scan on

Net Scan will install on Homey shortly.

Install

Be the first to hear about Homey’s latest developments.

Subscribe to our newsletter and be on top-of-mind about new Homey features, exclusive offers and more.