Run script on port connection
I'm not so smart with linux and I need to find a solution to a problem that's conceptually very easy.
I need to run a script that already works fine when a connection comes in a specific (any) port. I mean when I ping my server on a specific port, say 22.214.171.124:123 the linux server runs a specific script in a PATH folder.
How can I get this?