Investigate the cause of ECONNRESET when incorrect port is specified