read all instead of byte by byte
read the server port