Hello Nitish,
1. Enable IGMP and IGMP Snooping on the vlan level, which is enabled by default.2. Assign an IP to the vlan with the same subnet that S1 and S2 servers. (To have an IGMP querier)
3. When you start the mcast application, the server will join a mcast group that will be created in the switch. (That's is automatic through IGMP protocol)
For IGMP querier election you just need IP address configured to 1 switch. However you can have this configuration applied on both switches.