I am trying to send a string from the windows to the linux vmware on the same machine.

I did the following:
- opened a socket on 127.0.0.1 port 50000 on the linux machine and reading the socket in a while loop. My programming language is python 2.7
- send a command using nc ( netcat ) on 127.0.0.1 port 50000 from the windows machine ( using cygwin ).

However, I dont receive any command on the linux machine although the command sent through windows /cygwin is successful.

I am using NAT ( sharing the hosts IP address ) on the VMWARE Machine.

Where could be the problem?