read initial config from a config file.
support different port numbers to listen (XXX).