I want one of machine have a remote control alarm running that can be triggered by any remote machine. More precisely
- Machine A is running the service in the background
- Any remote machine B can send a packet to machine A to trigger the alarm (a command called
alarm)
How would you suggest do do it?
I would use nc:
Service on machine A:
nc -l 1111; alarmMachine B triggers the alarm with
nc <IP of machine A> 1111
I can also write some python to open a socket...