title: Connecting to remote Couchbase instance on AWS using Spring data returns private IP address
body: <p>I am running a Spring boot application that uses Spring data to connect to a remote instance of Couchbase on AWS.</p>
  
  <p>My Couchbase configuration class looks like this:</p>
  
  <pre><code>@Value(value = "${couchbase-url}")
  private String couchBaseUrl;
  
  @Value("${couchbase-bucket}")
  private String couchbaseBucketName;
  
  @Value("${couchbase-password}")
  private String couchbasePassword;
  
  @Override
  protected List&lt;String&gt; getBootstrapHosts() {
      return Arrays.asList(couchBaseUrl);
  }
  
  @Override
  protected String getBucketName() {
      return couchbaseBucketName;
  }
  
  @Override
  protected String getBucketPassword() {
      return couchbasePassword;
  }
  </code></pre>
  
  <p>where my param values look something like this:</p>
  
  <pre><code>couchbase-url=34.168.163.36:8091
  
  couchbase-bucket=conversion-data
  
  couchbase-password=secretpassword
  </code></pre>
  
  <p>When running this against a local instance, everything works as expected. When I run against the remote instance I get the following errors:</p>
  
  <pre><code>com.couchbase.client.deps.io.netty.channel.ConnectTimeoutException: connection timed out: /10.0.10.140:8093
  </code></pre>
  
  <p>Where 10.0.10.140 is the private IP address. So the initial connection seems to be fine but after that it has my service redirecting to the private IP address.</p>
  
  <p>Can anyone explain how I can get Couchbase to respond with the public IP address?</p>