That is a rather uncommon topology and might be not solvable without modifying at least one of the existing applications when the systems are in different network segments as your IP addresses indicate.
From my point of view you have only these choices:
- Let system A also send to C
- Let system B send to C when receiving packets
- Let system C be a network sniffer. This requires that it is placed in a network segment that sees the messages (e.g. same segment as system A or B and ensuring that it receives the data because switches might pass only packets for connected systems)
- Broadcasting the alive packets. Will only work in the same network segment or local networks where routers are configured to let these specific packages pass.