Do you mean that once you've connected, the server says nothing and you are expected to send your login info without being prompted?
Just looking at the code, if this is the case, just remove the read instructions and use the WriteLines.
string s = Read();