code: public final void setDefaultRemoteAddress(SocketAddress defaultRemoteAddress) {
          if (defaultRemoteAddress == null) {
              throw new NullPointerException("defaultRemoteAddress");
          }
          
          if (!getTransportMetadata().getAddressType().isAssignableFrom(
                  defaultRemoteAddress.getClass())) {
              throw new IllegalArgumentException("defaultRemoteAddress type: "
                      + defaultRemoteAddress.getClass() + " (expected: "
                      + getTransportMetadata().getAddressType() + ")");
          }
          this.defaultRemoteAddress = defaultRemoteAddress;
      }
docs: {@inheritDoc}