Network connection set up

To run, log into one session of putty, and run main.
Log into another session of putty and type,  "telnet 127.0.0.1 4001".