TCP Duplex Communication

I think your issue is you are running putty on the same machine and the tcp in node would be listening on same port and ip as putty, try running putty on a differnt machine/ip.