diff --git a/src/main/java/org/couchbase/mock/CouchbaseMock.java b/src/main/java/org/couchbase/mock/CouchbaseMock.java
index <HASH>..<HASH> 100644
--- a/src/main/java/org/couchbase/mock/CouchbaseMock.java
+++ b/src/main/java/org/couchbase/mock/CouchbaseMock.java
@@ -133,6 +133,13 @@ public class CouchbaseMock implements HttpRequestHandler, Runnable {
 	this(hostname, port, numNodes, numVBuckets, BucketType.BASE);
     }
 
+    /**
+     * The port of the http server providing the REST interface.
+     */
+    public int getHttpPort() {
+        return httpServer.getPort();
+    }
+
     public Credentials getRequiredHttpAuthorization() {
         return requiredHttpAuthorization;
     }
Expose the port the http server is listening on in CouchbaseMock.

Change-Id: Ifd<I>f2c4b<I>b1d6ead<I>deedb5f4
Reviewed-on: <URL>