Index: trunk/Nebulous/nebclient/src/nebclient.c
===================================================================
--- trunk/Nebulous/nebclient/src/nebclient.c	(revision 39178)
+++ trunk/Nebulous/nebclient/src/nebclient.c	(revision 39926)
@@ -529,6 +529,22 @@
         return NULL;
     }
+
+    // Construct a dummy volume name to allow nebulous to find the
+    // closest instance available.
+    char hostname[256];
+    char volname[260];
+
+    int v;
+
+    v = gethostname(hostname,256);
+    //    fprintf(stderr, "%s %d\n", hostname, v);
+/*     printf("%s %d\n",hostname,v); */
+    if (v) {
+      nebSetErr(server, "failed to construct hostname");
+      return NULL;
+    }
+    snprintf(volname,260, "%s.0", hostname);
     
-    nebObjectInstances *locations = nebFindInstances(server, key, NULL);
+    nebObjectInstances *locations = nebFindInstances(server, key, volname);
     if (!locations) {
         if (!strstr(nebErr(server), "no instances on storage volume")) {
