How To Use netcat and telnet for Simple Network Testing

yum install nc
SERVER-SIDE:
host1 shell> echo hello | nc -l 3456
CLIENT-SIDE:
host2 shell> nc host1 3456
hello
~or~
CLIENT-SIDE:
yum install telnet
host1 shell> telnet host2 {PORT}
![]() |
yum install nc
SERVER-SIDE:
host1 shell> echo hello | nc -l 3456
CLIENT-SIDE:
host2 shell> nc host1 3456
hello
~or~
CLIENT-SIDE:
yum install telnet
host1 shell> telnet host2 {PORT}
Leave Your Comment
All fields marked with "*" are required.