I am trying to use netcat to send a simple message over TCP, e.g. I want to send the digit 1.
So I understood that I write the following in the terminal, after installing netcat
netcat [ip-address] [port]
But how do I specify the message to be sent? i.e. where to I write "1"
?
Create file
something.txt
, content of file is 1At destination you must have something to listen to this.
or
Server:
to listen to the connection
Client:
After connection is establish on cilent simple type
1
and hitenter
I use:
So you would just need to run this: