add a validation of port. If the port is not idle , then the start of
the server fails