(cherry picked from commit c255333e20c9af6166db5931d70151011d540359)
@@ -526,7 +526,7 @@ public class FederationMetrics implements FederationMBean {
@Override
public String getHostAndPort() {
- InetSocketAddress address = this.router.getHttpServerAddress();
+ InetSocketAddress address = this.router.getRpcServerAddress();
if (address != null) {
try {
String hostname = InetAddress.getLocalHost().getHostName();