Set different client connector ports for different grids like this:

    <bean class="org.apache.ignite.configuration.IgniteConfiguration">
        <property name="clientConnectorConfiguration">
            <bean
class="org.apache.ignite.configuration.ClientConnectorConfiguration">
                <property name="port" value="10900"/>
            </bean>
        </property>
        ...

On Thu, Jan 12, 2023 at 2:01 PM Stephen Darlington <
stephen.darling...@gridgain.com> wrote:

> Those ports are for thick-clients and servers. Thin clients connect to
> 10800. The second server to start will be on 10801, etc.
>
> You can configure the thin-client port with ClientConnectorConfiguration:
> getting-started-with-thin-clients
> <https://ignite.apache.org/docs/latest/thin-clients/getting-started-with-thin-clients#configuring-thin-client-connector>
>
> On 12 Jan 2023, at 11:56, Charlin S <charli...@hotelhub.com> wrote:
>
> Hi Pavel,
> Thanks for your reply.
> I am having two grids in one server and grid configuration as below. Which
> port should I use for connecting grid1 and grid2?
>
> <image.png>
>
> As per my understanding, I should be able to connect thin clients like
> this. Please correct me if I am wrong.
>
> //for Grid 1
>
> var clientCfgGrid1 = new IgniteClientConfiguration
> {
>     Endpoints = new[] { "10.201.30.116: 
> <http://127.0.0.1:10901/>48500","10.201.30.117: 
> <http://127.0.0.1:10901/>48500" }
>
> };
>
> // for Grid 2
>
> var clientCfgGrid2 = new IgniteClientConfiguration
> {
>     Endpoints = new[] { "10.201.30.116: 
> <http://127.0.0.1:10901/>55800","10.201.30.117: 
> <http://127.0.0.1:10901/>55800" }
>
> };
>
>
> Regards,
> Charlin
>
>
>
>
>
>
>
>
>
> On Thu, 12 Jan 2023 at 15:37, Pavel Tupitsyn <ptupit...@apache.org> wrote:
>
>>
>> C# thin client can connect to any port, specify it in the endpoint string
>> like this:
>>
>> var clientCfg = new IgniteClientConfiguration("127.0.0.1:10901");
>> var client = Ignition.StartClient(clientCfg);
>>
>>
>> or
>>
>> var clientCfg2 = new IgniteClientConfiguration
>> {
>>     Endpoints = new[] { "127.0.0.1:10901" }
>> };
>>
>>
>> On Thu, Jan 12, 2023 at 11:41 AM Charlin S <charli...@hotelhub.com>
>> wrote:
>>
>>> Hi All,
>>> My requirement is to connect a specific grid(server has multiple grids)
>>> from c# thin client, since its support only 10800 ports.
>>>
>>> Regards,
>>> Charlin
>>>
>>>
>>>
>>>
>

Reply via email to