# Configure infinispan to use bind\_adr in cache-ispn.xml

**URL:** https://forum.keycloak.org/t/configure-infinispan-to-use-bind-adr-in-cache-ispn-xml/18861
**Category:** Configuring the server
**Created:** [December 7, 2022, 7:03pm UTC](https://forum.keycloak.org/t/configure-infinispan-to-use-bind-adr-in-cache-ispn-xml/18861 "2022-12-07T19:03:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mwbi](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/mwbi/32/7204_2.png) [@mwbi](https://forum.keycloak.org/u/mwbi)
#### Post date: [December 7, 2022, 7:03pm UTC](https://forum.keycloak.org/t/configure-infinispan-to-use-bind-adr-in-cache-ispn-xml/18861/1 "2022-12-07T19:03:46Z")

</div>

Hey,  
im searching for a solution to bind the infinispan communication on a specific ip adress to use unicast tcpping.  
I found some snipplets in the net and thats my cache-ispn.xml :

```auto
<infinispan
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="urn:infinispan:config:11.0 http://www.infinispan.org/schemas/infinispan-config-11.0.xsd"
        xmlns="urn:infinispan:config:11.0">

<jgroups>
        <stack name="tcpping" extends="tcp">
                <TCP bind_addr="192.168.10.23" bind_port="7800" />
                <TCPPING iinitial_hosts="192.168.10.22[7800],192.165.10.23[7800]"
                                                           stack.combine="REPLACE"
                                                           stack.position="MPING" />
                                                    </stack>
</jgroups>

<cache-container name="keycloak">
        <transport cluster="testcluster" node-name="keycloak1" lock-timeout="60000"
                stack="tcpping" />
.....
        </cache-container>
</infinispan>

```

this code did not change the ip adress, the only workaround i found is to set the java options " -Djgroups.bind.port=7800 -Djgroups.bind.address=192.168.10.23"

enviroment:  
keycloak version 20.0.1  
openjdk-11-jre

Grateful for any good tip

best regards  
michael
