output error when port is used