简体   繁体   中英

How to connect to Ignite cluster from Local machine in Java Spring boot?

TcpDiscoveryMulticastIpFinder ipFinder=new TcpDiscoveryMulticastIpFinder();
        ipFinder.setAddresses(Collections.singletonList("<IPAddress>:47500..47509"));
        tcpDiscoverySpi.setIpFinder(ipFinder);

Trying to connect to server node from client node using TCP IP Finder, but not able to connect. My client node is in the local machine whereas the ServerNode is in a remote server.

Is it possible to connect to a remotely hosted Gridgain/Ignite server using Java Springboot from another machine?

Yes, you can do that. Make sure that you use the correct address and port in the IpFinder configuration, as well as that the Discovery port on the remote host is reachable from the local machine. It could be that the port on the remote machine is closed or the firewall blocks the connection.

You can use netcat or a similar utility to check the connectivity. Here is a command example that should be executed on the local host:

nc -z <REMOTE_HOST_IP_ADDRESS> 47500

Also, you can find additional details regarding Ignite usage with Spring Boot applications in this tutorial.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM