Netcat is already avaible in linux for windows you can download it, it's free.
TCP
---------------------------------------
With the comand below you can start a netcat server in any TCP port (here we use 53), in you local machine, and lets assume your local machine has the following IP 192.136.49.47.
# sudo nc -l -p 53
Now in another machine you can connect to the server at 192.136.49.47:53, with netcat as a client.
# sudo nc 192.136.49.47 53
To see if it's working you can type text in the bash (comand line) of the server or client and press enter and see if the text you inputed reaches the other machine, this is a simple and very reliable way to test connections between machines, and also firewalls
Bellow we have the same but for the UDP protocol.
UDP
------------------------------------
# sudo nc -l -p 53 -u
# sudo nc -u 192.136.49.47 53
1 comment:
It is very useful and knowledgeable. Therefore, I would like to thank you for the efforts you have made in writing this article.
WS-C3650-24PS-E
WS-C3650-24TD-L
WS-C3650-24PD-S
Post a Comment