Reading of port and cmd from config