title: MongoDB running locally but when trying to access remotely it failed
body: <p>Able to run MongoDB locally but when trying to access remotely it failed. Havent done any firewall setup. What could be the issue? How to do troubleshoot?</p>
  
  <p>Also the MongoDB status show running</p>
  
  <pre><code>service mongod status
  mongod (pid 25342) is running...
  </code></pre>
  
  <p>But when trying to restart the service it says</p>
  
  <pre><code>service mongod restart
  Stopping mongod:                                           [  OK  ]
  Starting mongod:                                           [FAILED]
  </code></pre>
  
  <p>But still the process is running</p>
  
  <p><strong>Update</strong></p>
  
  <p>Tried  mongod --repair here is the update</p>
  
  <pre><code>2015-01-10T10:46:33.109-0500 [initandlisten] MongoDB starting : pid=29018 port=2                                                                                        7017 dbpath=/data/db 64-bit host=ns4008927.ip-192-99-3.net
  2015-01-10T10:46:33.109-0500 [initandlisten] db version v2.6.6
  2015-01-10T10:46:33.109-0500 [initandlisten] git version: 608e8bc319627693b04cc7                                                                                        da29ecc300a5f45a1f
  2015-01-10T10:46:33.109-0500 [initandlisten] build info: Linux build10.nj1.10gen                                                                                        .cc 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 BOOST_LI                                                                                        B_VERSION=1_49
  2015-01-10T10:46:33.109-0500 [initandlisten] allocator: tcmalloc
  2015-01-10T10:46:33.109-0500 [initandlisten] options: { repair: true }
  2015-01-10T10:46:33.112-0500 [initandlisten] finished checking dbs
  2015-01-10T10:46:33.112-0500 [initandlisten] dbexit:
  2015-01-10T10:46:33.112-0500 [initandlisten] shutdown: going to close listening                                                                                         sockets...
  2015-01-10T10:46:33.112-0500 [initandlisten] shutdown: going to flush diaglog...
  2015-01-10T10:46:33.112-0500 [initandlisten] shutdown: going to close sockets...
  2015-01-10T10:46:33.112-0500 [initandlisten] shutdown: waiting for fs preallocat                                                                                        or...
  2015-01-10T10:46:33.112-0500 [initandlisten] shutdown: closing all files...
  2015-01-10T10:46:33.112-0500 [initandlisten] closeAllFiles() finished
  2015-01-10T10:46:33.112-0500 [initandlisten] shutdown: removing fs lock...
  2015-01-10T10:46:33.112-0500 [initandlisten] dbexit: really exiting now
  </code></pre>