code: public static InetAddress getLocalAddress()
      {
          if (localInetAddress == null)
              try
              {
                  localInetAddress = DatabaseDescriptor.getListenAddress() == null
                                      ? InetAddress.getLocalHost()
                                      : DatabaseDescriptor.getListenAddress();
              }
              catch (UnknownHostException e)
              {
                  throw new RuntimeException(e);
              }
          return localInetAddress;
      }
docs: Please use getBroadcastAddress instead. You need this only when you have to listen/connect.