fixed TCP Socket issue, same as walters unix fix