Server and Port availability check added.
Server and Port availability check added.