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

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -