You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by manatee <sh...@gmail.com> on 2017/12/21 19:28:35 UTC

How to connect apache ignite node by static ip address

I have got a hetzner server with config:
    
    <bean id="ignite-configuration"
class="org.apache.ignite.IgniteSpringBean">
        <property name="configuration">
            <bean
class="org.apache.ignite.configuration.IgniteConfiguration">
                <property name="peerClassLoadingEnabled" value="true"/>
                <property name="igniteInstanceName"
value="statistic-server"/>

                <property name="discoverySpi">
                    <bean
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                        <property name="ipFinder">
                            <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
                                <property name="addresses">
                                    <list>
                                       
<value>127.0.0.1:47500..47509</value>
                                    </list>
                                </property>
                            </bean>
                        </property>
                    </bean>
                </property>
            </bean>
        </property>
    </bean>
    
I want to connect my Laptop to server like a server node. I can't find
information how to do this. On my laptop i create the next config:
        <property name="discoverySpi">
            <bean
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                <property name="ipFinder">
                    <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
                        <property name="addresses">
                            <list>
                               
<value>hetzner_ip_address:47500..47509</value>
                            </list>
                        </property>
                    </bean>
                </property>
                <property name="addressResolver">
                    <bean
class="org.apache.ignite.configuration.BasicAddressResolver">
                        <constructor-arg>
                            <map>
                                <entry key="192.168.1.10"
value="laptop_static_ip_address"/>
                            </map>
                        </constructor-arg>
                    </bean>
                </property>
            </bean>
        </property>
Can I connect servers behind NAT by static ip address and how can I do this?



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: How to connect apache ignite node by static ip address

Posted by vkulichenko <va...@gmail.com>.
I replied to this on StackOverflow:
https://stackoverflow.com/questions/47931737/how-to-connect-apache-ignite-node-by-static-ip-address

-Val



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: How to connect apache ignite node by static ip address

Posted by manatee <sh...@gmail.com>.
Mission complete. I created VPN server on my hetzner server and connect my
client node to vpn.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/