Aryan -
I haveing a very similar issue to you. I was wondering if you could please help me out.
I'm only getting one of my servers to see the other using the hazelcast plugin. I have made sure that both servers can ping each other but I still can't get it to work. I have attached my config.
Notice I have two IP's on two different subnets. My computer IPs are 10.0.3.167:5701 and 10.0.0.219:5701 so I made the interfance 10.0.0-5.0-255 and it does not seem to work. These servers are in AWS fyi.
<multicast enabled="false">
<multicast-group>224.2.2.3</multicast-group>
<multicast-port>54327</multicast-port>
</multicast>
<tcp-ip enabled="true"/>
<member>10.0.3.167:5701</member>
<member>10.0.0.219:5701</member>
</tcp-ip>
<aws enabled="false"/>
</join>
<interfaces enabled="true"/>
<interface>10.0.0-5.0-255<interface/>
</interface>
Thanks!