Programmatically check port status with npm portscanner

Welcome to the forums Owen - thanks for joining up!

Ping just checks if a device is up or not, it does not show specific port status.
If you just need to know if an IP address is there or not, then that node works well.