Terminal command to send data (plain text string) to a port at a remote computer.
- by Eddy
I am trying to send data (plain text string) to a port at a remote computer using terminal utility. The string would be used to trigger something on the remote computer running a program that would listen to that specific port.
I used netcat command and tried a few combination of the following but can't seem to get the parameter right. Can someone point me out where am I doing wrong?
eddy-2:Desktop eddy$ nc IPADDRESS PORT woc.txt
eddy-2:Desktop eddy$ nc IPADDRESS PORT < woc.txt
P.S: woc.txt contains plain text string of the said command.
Edit: I am trying to send a string from OSX to Windows XP where the specific port is open by default.