When the client connects to the server on the local network everything works fine, when the client connects to a remote server receive this log:
Server: Info: Pinging node: c129d9da-dbeb-4c75-9120-a8c463ae7d72 Info: Finished node ping [nodeId=c129d9da-dbeb-4c75-9120-a8c463ae7d72, res=true, time=7ms] Info: Pinging node: c129d9da-dbeb-4c75-9120-a8c463ae7d72 Info: Finished node ping [nodeId=c129d9da-dbeb-4c75-9120-a8c463ae7d72, res=true, time=7ms] Info: Finished serving remote node connection [rmtAddr=/83.220.236.108:59374, rmtPort=59374 Info: Node left topology: TcpDiscoveryNode [id=98095783-a81f-4666-8611-79d2c33ff09f, addrs=[0:0:0:0:0:0:0:1%lo, 127.0.0.1, 192.168.8.132], sockAddrs=[/192.168.8.132:0, /0:0:0:0:0:0:0:1%lo:0, /127.0.0.1:0], discPort=0, order=2, intOrder=2, lastExchangeTime=1516260282663, loc=false, ver=2.3.0#20171028-sha1:8add7fd5, isClient=true] Info: Topology snapshot [ver=3, servers=1, clients=0, CPUs=8, heap=3.0GB] Info: Started exchange init [topVer=AffinityTopologyVersion [topVer=3, minorTopVer=0], crd=true, evt=NODE_LEFT, evtNode=98095783-a81f-4666-8611-79d2c33ff09f, customEvt=null, allowMerge=true] Info: Finish exchange future [startVer=AffinityTopologyVersion [topVer=3, minorTopVer=0], resVer=AffinityTopologyVersion [topVer=3, minorTopVer=0], err=null] Info: Finished exchange init [topVer=AffinityTopologyVersion [topVer=3, minorTopVer=0], crd=true] Info: Skipping rebalancing (nothing scheduled) [top=AffinityTopologyVersion [topVer=3, minorTopVer=0], evt=NODE_LEFT, node=98095783-a81f-4666-8611-79d2c33ff09f] Info: TCP discovery accepted incoming connection [rmtAddr=/83.220.236.108, rmtPort=6661] Info: TCP discovery spawning a new thread for connection [rmtAddr=/83.220.236.108, rmtPort=6661] Info: Started serving remote node connection [rmtAddr=/83.220.236.108:6661, rmtPort=6661] Info: Added new node to topology: TcpDiscoveryNode [id=4c5b6ec7-7a37-43ae-8d4d-2c9cecb9eb59, addrs=[0:0:0:0:0:0:0:1%lo, 127.0.0.1, 192.168.8.132], sockAddrs=[/192.168.8.132:0, /0:0:0:0:0:0:0:1%lo:0, /127.0.0.1:0], discPort=0, order=4, intOrder=3, lastExchangeTime=1516260333804, loc=false, ver=2.3.0#20171028-sha1:8add7fd5, isClient=true] Info: Topology snapshot [ver=4, servers=1, clients=1, CPUs=12, heap=3.5GB] Info: Started exchange init [topVer=AffinityTopologyVersion [topVer=4, minorTopVer=0], crd=true, evt=NODE_JOINED, evtNode=4c5b6ec7-7a37-43ae-8d4d-2c9cecb9eb59, customEvt=null, allowMerge=true] Info: Finish exchange future [startVer=AffinityTopologyVersion [topVer=4, minorTopVer=0], resVer=AffinityTopologyVersion [topVer=4, minorTopVer=0], err=null] Info: Finished exchange init [topVer=AffinityTopologyVersion [topVer=4, minorTopVer=0], crd=true] Info: Skipping rebalancing (nothing scheduled) [top=AffinityTopologyVersion [topVer=4, minorTopVer=0], evt=NODE_JOINED, node=4c5b6ec7-7a37-43ae-8d4d-2c9cecb9eb59] Info: Pinging node: c129d9da-dbeb-4c75-9120-a8c463ae7d72 Info: Finished node ping [nodeId=c129d9da-dbeb-4c75-9120-a8c463ae7d72, res=true, time=0ms] Info: Pinging node: c129d9da-dbeb-4c75-9120-a8c463ae7d72 Info: Finished node ping [nodeId=c129d9da-dbeb-4c75-9120-a8c463ae7d72, res=true, time=0ms] ... Client: Info: Successfully bound communication NIO server to TCP port [port=47100, locHost=0.0.0.0/0.0.0.0, selectorsCnt=4, selectorSpins=0, pairedConn=true] Warning: Message queue limit is set to 0 which may lead to potential OOMEs when running cache operations in FULL_ASYNC or PRIMARY_SYNC modes due to message queues growth on sender and receiver sides. Warning: Checkpoints are disabled (to enable configure any GridCheckpointSpi implementation) Warning: Collision resolution is disabled (all jobs will be activated upon arrival). Info: Security status [authentication=off, tls/ssl=off] Info: Client connector processor has started on TCP port 10800 Info: REST protocols do not start on client node. To start the protocols on client node set '-DIGNITE_REST_START_ON_CLIENT=true' system property. Info: Non-loopback local IPs: 192.168.8.132, fe80:0:0:0:2bba:7869:eb43:2692%enp0s20f0u2 Info: Enabled local MACs: 8AA06A77AF0A Info: Started exchange init [topVer=AffinityTopologyVersion [topVer=2, minorTopVer=0], crd=false, evt=NODE_JOINED, evtNode=98095783-a81f-4666-8611-79d2c33ff09f, customEvt=null, allowMerge=true] Info: Started cache [name=ignite-sys-cache, memoryPolicyName=sysMemPlc, mode=REPLICATED, atomicity=TRANSACTIONAL] Info: Your version is up to date. Warning: Connect timed out (consider increasing 'failureDetectionTimeout' configuration property) [addr=/192.168.1.145:47100, failureDetectionTimeout=10000] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33516] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33518] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33520] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33522] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33524] Info: Accepted incoming communication connection [locAddr=/0:0:0:0:0:0:0:1:47100, rmtAddr=/0:0:0:0:0:0:0:1:56238] Warning: Failed to wait for initial partition map exchange. Possible reasons are: ^-- Transactions in deadlock. ^-- Long running transactions (ignore if this is the case). ^-- Unreleased explicit locks. Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33562] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33564] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33566] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33568] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33570] Info: Accepted incoming communication connection [locAddr=/0:0:0:0:0:0:0:1:47100, rmtAddr=/0:0:0:0:0:0:0:1:56284] Warning: Still waiting for initial partition map exchange [fut=GridDhtPartitionsExchangeFuture [firstDiscoEvt=DiscoveryEvent [evtNode=TcpDiscoveryNode [id=98095783-a81f-4666-8611-79d2c33ff09f, addrs=[0:0:0:0:0:0:0:1%lo, 127.0.0.1, 192.168.8.132], sockAddrs=[/192.168.8.132:0, /0:0:0:0:0:0:0:1%lo:0, /127.0.0.1:0], discPort=0, order=2, intOrder=0, lastExchangeTime=1516260281366, loc=true, ver=2.3.0#20171028-sha1:8add7fd5, isClient=true], topVer=2, nodeId8=98095783, msg=null, type=NODE_JOINED, tstamp=1516260288085], crd=TcpDiscoveryNode [id=c129d9da-dbeb-4c75-9120-a8c463ae7d72, addrs=[0:0:0:0:0:0:0:1, 127.0.0.1, 192.168.1.145], sockAddrs=[/0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500, /192.168.1.145:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1516260282922, loc=false, ver=2.3.0#20171028-sha1:8add7fd5, isClient=false], exchId=GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=2, minorTopVer=0], discoEvt=DiscoveryEvent [evtNode=TcpDiscoveryNode [id=98095783-a81f-4666-8611-79d2c33ff09f, addrs=[0:0:0:0:0:0:0:1%lo, 127.0.0.1, 192.168.8.132], sockAddrs=[/192.168.8.132:0, /0:0:0:0:0:0:0:1%lo:0, /127.0.0.1:0], discPort=0, order=2, intOrder=0, lastExchangeTime=1516260281366, loc=true, ver=2.3.0#20171028-sha1:8add7fd5, isClient=true], topVer=2, nodeId8=98095783, msg=null, type=NODE_JOINED, tstamp=1516260288085], nodeId=98095783, evt=NODE_JOINED], added=true, initFut=GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=263754406], init=false, lastVer=null, partReleaseFut=null, exchActions=null, affChangeMsg=null, initTs=1516260288126, centralizedAff=false, changeGlobalStateE=null, done=false, state=CLIENT, evtLatch=0, remaining=[c129d9da-dbeb-4c75-9120-a8c463ae7d72], super=GridFutureAdapter [ignoreInterrupts=false, state=INIT, res=null, hash=1952596524]]] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33582] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33584] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33586] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33588] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33590] Info: Accepted incoming communication connection [locAddr=/0:0:0:0:0:0:0:1:47100, rmtAddr=/0:0:0:0:0:0:0:1:56304] Info: Finish exchange future [startVer=AffinityTopologyVersion [topVer=2, minorTopVer=0], resVer=null, err=class org.apache.ignite.internal.IgniteNeedReconnectException: Local node need try to reconnect [locNodeId=98095783-a81f-4666-8611-79d2c33ff09f]] Warning: Local node failed to complete partition map exchange due to network issues, will try to reconnect to cluster Warning: Local node will try to reconnect to cluster with new id due to network problems [newId=4c5b6ec7-7a37-43ae-8d4d-2c9cecb9eb59, prevId=98095783-a81f-4666-8611-79d2c33ff09f, locNode=TcpDiscoveryNode [id=98095783-a81f-4666-8611-79d2c33ff09f, addrs=[0:0:0:0:0:0:0:1%lo, 127.0.0.1, 192.168.8.132], sockAddrs=[/192.168.8.132:0, /0:0:0:0:0:0:0:1%lo:0, /127.0.0.1:0], discPort=0, order=2, intOrder=0, lastExchangeTime=1516260281366, loc=true, ver=2.3.0#20171028-sha1:8add7fd5, isClient=true]] Info: Started exchange init [topVer=AffinityTopologyVersion [topVer=4, minorTopVer=0], crd=false, evt=NODE_JOINED, evtNode=4c5b6ec7-7a37-43ae-8d4d-2c9cecb9eb59, customEvt=null, allowMerge=true] Warning: Client node was reconnected after it was already considered failed by the server topology (this could happen after all servers restarted or due to a long network outage between the client and servers). All continuous queries and remote event listeners created by this client will be unsubscribed, consider listening to EVT_CLIENT_NODE_RECONNECTED event to restore them. Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33600] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33602] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33606] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33608] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33610] Info: Accepted incoming communication connection [locAddr=/0:0:0:0:0:0:0:1:47100, rmtAddr=/0:0:0:0:0:0:0:1:56324] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33620] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33622] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33624] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33626] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33628] Info: Accepted incoming communication connection [locAddr=/0:0:0:0:0:0:0:1:47100, rmtAddr=/0:0:0:0:0:0:0:1:56342] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33642] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33644] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33646] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33648] Info: Accepted incoming communication connection [locAddr=/127.0.0.1:47100, rmtAddr=/127.0.0.1:33650] Info: Accepted incoming communication connection [locAddr=/0:0:0:0:0:0:0:1:47100, rmtAddr=/0:0:0:0:0:0:0:1:56364] Info: Finish exchange future [startVer=AffinityTopologyVersion [topVer=4, minorTopVer=0], resVer=null, err=class org.apache.ignite.internal.IgniteNeedReconnectException: Local node need try to reconnect [locNodeId=4c5b6ec7-7a37-43ae-8d4d-2c9cecb9eb59]] Severe: [10:26:23] (err) Failed to execute compound future reducer: GridCompoundFuture [rdc=null, initFlag=1, lsnrCalls=0, done=false, cancelled=false, err=null, futs=[true]] Severe: class org.apache.ignite.internal.IgniteNeedReconnectException: Local node need try to reconnect [locNodeId=4c5b6ec7-7a37-43ae-8d4d-2c9cecb9eb59] at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:693) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2279) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) at java.lang.Thread.run(Thread.java:748) Caused by: class org.apache.ignite.IgniteCheckedException: Failed to send message (node may have left the grid or TCP connection cannot be established due to firewall issues) [node=TcpDiscoveryNode [id=c129d9da-dbeb-4c75-9120-a8c463ae7d72, addrs=[0:0:0:0:0:0:0:1, 127.0.0.1, 192.168.1.145], sockAddrs=[/0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500, /192.168.1.145:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1516260334063, loc=false, ver=2.3.0#20171028-sha1:8add7fd5, isClient=false], topic=TOPIC_CACHE, msg=GridDhtPartitionsSingleMessage [parts=null, partCntrs=null, partHistCntrs=null, err=null, client=true, compress=true, finishMsg=null, super=GridDhtPartitionsAbstractMessage [exchId=GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=4, minorTopVer=0], discoEvt=DiscoveryEvent [evtNode=TcpDiscoveryNode [id=4c5b6ec7-7a37-43ae-8d4d-2c9cecb9eb59, addrs=[0:0:0:0:0:0:0:1%lo, 127.0.0.1, 192.168.8.132], sockAddrs=[/192.168.8.132:0, /0:0:0:0:0:0:0:1%lo:0, /127.0.0.1:0], discPort=0, order=4, intOrder=0, lastExchangeTime=1516260281366, loc=true, ver=2.3.0#20171028-sha1:8add7fd5, isClient=true], topVer=4, nodeId8=4c5b6ec7, msg=null, type=NODE_JOINED, tstamp=1516260339131], nodeId=4c5b6ec7, evt=NODE_JOINED], lastVer=GridCacheVersion [topVer=0, order=1516260280963, nodeOrder=0], super=GridCacheMessage [msgId=2, depInfo=null, err=null, skipPrepare=false]]], policy=2] at org.apache.ignite.internal.managers.communication.GridIoManager.send(GridIoManager.java:1650) at org.apache.ignite.internal.managers.communication.GridIoManager.sendToGridTopic(GridIoManager.java:1714) at org.apache.ignite.internal.processors.cache.GridCacheIoManager.send(GridCacheIoManager.java:1166) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.sendLocalPartitions(GridDhtPartitionsExchangeFuture.java:1255) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.clientOnlyExchange(GridDhtPartitionsExchangeFuture.java:953) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:660) ... 3 more …. Server configuration: IgniteConfiguration serverConf = new IgniteConfiguration(); serverConf.setClientMode(false); TcpDiscoverySpi discovery = new TcpDiscoverySpi(); TcpDiscoveryVmIpFinder ipFinder = new TcpDiscoveryVmIpFinder(); TcpCommunicationSpi tcpCommunicationSpi = new TcpCommunicationSpi(); tcpCommunicationSpi.setLocalPort(47500); tcpCommunicationSpi.setDirectBuffer(false); tcpCommunicationSpi.setSharedMemoryPort(-1); tcpCommunicationSpi.setUsePairedConnections(true); serverConf.setCommunicationSpi(tcpCommunicationSpi); serverConf.setPeerClassLoadingEnabled(false); ipFinder.setAddresses(Arrays.asList("192.168.1.145:47500", “89.208.212.10:47500”)); discovery.setIpFinder(ipFinder); serverConf.setDiscoverySpi(discovery); Client configuration: As in the server configutation, except TcpDiscoveryVmIpFinder and ClientMode: IgniteConfiguration clientConf = new IgniteConfiguration(); clientConf.setClientMode(true); .... ipFinder.setAddresses(Arrays.asList("89.208.212.10:47500”)); Can you give examples of configuration of client and server for external connection? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/