this works out of the box when the LMS is running on Max2Play. It might be because of a different network Port, that is used for the commands. Default for the CLI (command line interface on LMS) is 9090. You might check this in your LMS settings. Another point might be a Firewall issue with your MAC, that blocks incoming traffic on this port.