I can use both nc and telnet to connect to port 25.
$ nc 192.168.1.120 25
220 localhost ESMTP Exim 4.68 Tue, 29 Dec 2020 06:07:27 +0000
$ telnet 192.168.1.120 25
Trying 192.168.1.120...
Connected to 192.168.1.120.
Escape character is '^]'.
220 localhost ESMTP Exim 4.68 Tue, 29 Dec 2020 06:07:32 +0000
I am trying to understand the difference between nc and telnet. Although there is some discussion here, it does not explain in light of the above example.
what is the difference between telnet and netcat?
Could anybody explain the difference between nc and telnet using the above example?
Can both of them be used to get the same results for this example? Thanks.