I did a little more try and error maybe I did something in gernal wrong but after I did the following it worked:

  1. start mongod --bind_ip_all
  2. start mongo -host ip adress
  3. use admin (no user here even tho i created some before aperently only on local host…)
  4. create admin user as written above.
  5. restart mongod --auth --bind_ip_all
  6. connect from remote pc --> works

Thanks for your help guys propably i need to setup more now but im happy i got this far.

//but now if i connect with compas it tells me in mongod connection accepted but nothing is hown in compas on my remote pc. if i do it in visual studio code i at least get a message that it was successfully

2 Likes