Possibility to define agent port for each agent. closes #2515