node.js - run shell script on client remotly from server -


i have 1 server , multiple clients. server wants run shell script on each device wants to. absolutely it's not possible via simple socket because may have thousands of devices. server , devices should connected via socket. after lot of search found out solution might nat-t. still don't know how use or if there solution. please me should on clients , server.

if don't know clients address , port upfront, need connect server clients. 1000s of devices no problem. run in socket limit around 65000 open ports (check ulimit). build object stream between client , server , execute script based on object client receives. set interval on clients , let them check simple http(s) every n secs if there them?

see example here: node stream docs or here: node http docs


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -