title: mongorestore Failed: no reachable servers
body: <p>I tried to restore mongo from dump but failed:</p>
  
  <pre><code>mongorestore --port 27133 dump
  2015-05-07T09:39:11.760+0300    Failed: no reachable servers
  </code></pre>
  
  <p>Although I can connect to it without any problem:</p>
  
  <pre><code>$ mongo --port 27133
  MongoDB shell version: 3.0.1
  connecting to: 127.0.0.1:27133/test
  </code></pre>
  
  <p>In a log file there is nothing special:</p>
  
  <pre><code>2015-05-07T09:37:00.350+0300 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:44901 #1 (1 connection now open)
  2015-05-07T09:37:13.935+0300 I NETWORK  [conn1] end connection 127.0.0.1:44901 (0 connections now open)
  2015-05-07T09:39:08.752+0300 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:44906 #2 (1 connection now open)
  2015-05-07T09:39:11.763+0300 I NETWORK  [conn2] end connection 127.0.0.1:44906 (0 connections now open)
  2015-05-07T09:39:52.365+0300 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:44907 #3 (1 connection now open)
  2015-05-07T09:39:55.064+0300 I NETWORK  [conn3] end connection 127.0.0.1:44907 (0 connections now open)
  2015-05-07T09:40:11.272+0300 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:44909 #4 (1 connection now open)
  2015-05-07T09:40:14.281+0300 I NETWORK  [conn4] end connection 127.0.0.1:44909 (0 connections now open)
  </code></pre>
  
  <h1>Update</h1>
  
  <p>Host <code>127.0.0.1</code> didn't help</p>
  
  <pre><code>$ mongorestore --host=127.0.0.1 --port=27132 dump
  2015-12-16T18:52:33.270+0300    Failed: no reachable servers
  </code></pre>
  
  <p>Although I can still connect using <code>mongo</code> command:</p>
  
  <pre><code>$ mongo --host=127.0.0.1 --port=27133
  MongoDB shell version: 3.2.0
  connecting to: 127.0.0.1:27133/test
  &gt; ^C
  bye
  </code></pre>
  
  <p>Host <code>0.0.0.0</code> didn't help as well:</p>
  
  <pre><code>$ mongorestore --host=0.0.0.0 --port=27133 dump
  </code></pre>
  
  <p>I have 3.2 version of MongoDb:</p>
  
  <pre><code>$ mongorestore --version
  mongorestore version: 3.2.0-rc5
  git version: 6186100ad0500c122a56f0a0e28ce1227ca4fc88
  </code></pre>