Ncat -vvv

Upon doing some testing for some connectivity, a client college recommended to use ncat with -v, the exact command was ncat -vvv -w2 -i2

I was trying to understand the results and I did something where

hostname comment
hosto source environment
hosta target environment

For a failing not open connection on port 80:

angelo@hosto:~$ ncat -vvv -i2 -w2 hosta 80
Ncat: Version 6.40 ( http://nmap.org/ncat )
libnsock nsi_new2(): nsi_new (IOD #1)
libnsock nsock_connect_tcp(): TCP connection requested to 192.168.1.124:80 (IOD #1) EID 8
libnsock nsock_trace_handler_callback(): Callback: CONNECT ERROR [Connection refused (111)] for EID 8 [192.168.1.124:80]
Ncat: Connection refused.

For a working connection on port 22 (ssh-server running):

Ncat: Version 6.40 ( http://nmap.org/ncat )
libnsock nsi_new2(): nsi_new (IOD #1)
libnsock nsock_connect_tcp(): TCP connection requested to 192.168.1.124:22 (IOD #1) EID 8
libnsock nsock_trace_handler_callback(): Callback: CONNECT SUCCESS for EID 8 [192.168.1.124:22]
Ncat: Connected to 192.168.1.124:22.
libnsock nsi_new2(): nsi_new (IOD #2)
libnsock nsock_read(): Read request from IOD #1 [192.168.1.124:22] (timeout: -1ms) EID 18
libnsock nsock_readbytes(): Read request for 0 bytes from IOD #2 [peer unspecified] EID 26
libnsock nsock_timer_create(): Timer created - 2000ms from now.  EID 36
libnsock nsock_trace_handler_callback(): Callback: READ SUCCESS for EID 18 [192.168.1.124:22] (41 bytes): SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2..
SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
libnsock nsock_readbytes(): Read request for 0 bytes from IOD #1 [192.168.1.124:22] EID 42
libnsock nsock_event_cancel(): Event #36 (type TIMER) cancelled
libnsock msevent_cancel(): msevent_cancel on event #36 (type TIMER)
libnsock nsock_timer_create(): Timer created - 2000ms from now.  EID 52
libnsock nsock_trace_handler_callback(): Callback: TIMER SUCCESS for EID 52
Ncat: Idle timeout expired (2000 ms).

Updated: