Hi,
You can configure TcpCommunicationSpi:
TcpCommunicationSpi communicationSpi = new TcpCommunicationSpi();
communicationSpi.setLocalAddress(localAddress);
communicationSpi.setLocalPort(cc.getCommunicationLocalPort());
communicationSpi.setLocalPortRange(cc.getPortRange());
Please take a look at documentation:
https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpi.html#setLocalPort-int-
Best Regards,
Andrei
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/