Alex is right. You don't need to set IgniteClientConfiguration.Port if you use the default one (10800). Also, `Ignition.ClientMode = true` is not related to Thin Client
On Tue, Dec 24, 2019 at 12:14 PM Alex Plehanov <[email protected]> wrote: > Hello, > > 47500 - is a discovery SPI port. For thin client connection you should use > 10800 port, or configure another by clientConnectorConfiguration property. > > вт, 24 дек. 2019 г. в 10:38, userx <[email protected]>: > >> Hi team, >> >> I have started an ignite server with the below command on my local machine >> >> ignite.bat C:\..\\..\config\Ignite-config.xml >> >> My config looks like >> >> <beans xmlns="http://www.springframework.org/schema/beans" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation=" >> http://www.springframework.org/schema/beans >> http://www.springframework.org/schema/beans/spring-beans.xsd"> >> >> <bean id="grid.cfg" >> class="org.apache.ignite.configuration.IgniteConfiguration"> >> <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>MyHostName:47500..47502</value> >> >> </list> >> </property> >> </bean> >> </property> >> >> </bean> >> </property> >> >> <property name="communicationSpi"> >> <bean >> class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi"> >> <property name="localPort" >> value="48100" /> >> <property >> name="localPortRange" value="10" /> >> <property >> name="usePairedConnections" value="true"></property> >> <property >> name="messageQueueLimit" value="1024"></property> >> <property >> name="directSendBuffer" value="true"></property> >> <property >> name="selectorsCount" value="4"></property> >> <property >> name="socketWriteTimeout" value="300000" /> >> </bean> >> </property> >> </bean> >> </beans> >> >> >> I am running the client code as follows >> Running client code as follows >> class Program >> { >> public static IIgniteClient IgniteThinClient; >> private static IgniteClientConfiguration >> GetIgniteClientConfiguration() >> { >> return new IgniteClientConfiguration >> { >> Host = "MyHostName", >> Port = 47500 >> }; >> } >> static void Main(string[] args) >> { >> try >> { >> Ignition.ClientMode = true; >> IgniteThinClient = >> Ignition.StartClient(GetIgniteClientConfiguration()); >> } >> catch(Exception ex) >> { >> //Log Ex >> } >> } >> } >> >> I cannot see my client connected and instead see the following logs >> >>> VM name: 195616@MyHostName >> >>> Local node [ID=5032DC52-0036-3BDF5136903, order=1, clientMode=false] >> >>> Local node addresses: [MyHostName/0:0:0:0:0:0:0:1, /127.0.0.1, >> >>> /10.10.17.82] >> >>> Local ports: TCP:10800 TCP:11211 TCP:47500 TCP:48100 >> >> [20:29:43,699][INFO][main][GridDiscoveryManager] Topology snapshot [ver=1, >> locNode=5032dc52, servers=1, clients=0, state=ACTIVE, CPUs=8, >> offheap=3.2GB, >> heap=1.0GB] >> [20:30:00,233][INFO][tcp-disco-srvr-#3][TcpDiscoverySpi] TCP discovery >> accepted incoming connection [rmtAddr=/10.10.17.82, rmtPort=60732] >> [20:30:00,243][INFO][tcp-disco-srvr-#3][TcpDiscoverySpi] TCP discovery >> spawning a new thread for connection [rmtAddr=/10.10.17.82, >> rmtPort=60732] >> [20:30:00,244][INFO][tcp-disco-sock-reader-#4][TcpDiscoverySpi] Started >> serving remote node connection [rmtAddr=/10.10.17.82:60732, >> rmtPort=60732] >> [20:30:00,245][WARNING][tcp-disco-sock-reader-#4][TcpDiscoverySpi] Unknown >> connection detected (is some other software connecting to this Ignite >> port? >> missing SSL configuration on remote node?) [rmtAddr=/10.10.17.82] >> [20:30:00,245][INFO][tcp-disco-sock-reader-#4][TcpDiscoverySpi] Finished >> serving remote node connection [rmtAddr=/10.10.17.82:60732, rmtPort=60732 >> >> If instead I replace MyHostName with localhost, i see the client getting >> connected on the server. Can you help me out with the issue ? >> >> >> >> -- >> Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >> >
