First command set is written. networkstream is used.