Further, we restart the mongod shell as an admin user. In the mongod shell, we add a user with admin privilege in the admin database. If the telnet command just sits there waiting, then not good. Initially, to enable access control our Support Engineers create an admin user. You can get the host ip (that wsl/Ubuntu uses for servers running on windows) by using the cat /etc/nf that is mentioned in this thread. Probably should turn off the mongodb service (if running before doing any of this).īTW, a quick and easy test would be to use telnet on the wsl/Ubuntu command line
From there you can follow the steps outlined by sylvix and sarunmrznĭon't forget the bind to 0.0.0.0 setting in mongod.cfg file.Then click on the "Allow an app through firewall".In the search box, type then click "Firewall & network protection".
FAILED TO START MONGODB SERVER ON PORT 3002 WINDOWS
Right Click the Windows Start icon (at the bottom left).The instructions for that part was a little confusing so let me clarify it a little. Something about using the Windows settings firewall (instead of just using Windows Defender Firewall) worked!!! I tried SOOOO many things and nothing seemed to work, til I finally tried the steps outlined by by sylvix and sarunmrzn!!! Thanks this works great! but why is the address on nf different from the address thats shown in ip addr? for me just the nameserver from nf works Or google for "wsl find host ip" there are plenty of solutions there. Note The image that we use here is a community edition, MongoDB does provides an Enterprise Server that can include some cost. On my machine cat /etc/nf works, after "nameserver" part. Creating a docker container with mongodb official Image. It will add a set of rules to Defender Firewall that didn't work for some reason when added manually.And Controlelr will use port 27001/27002 to find if there are any other Controller running in the same subnet. We use port 8088/8043 to log in to the web management page of Omada Conttroller. Then click "Network types" and select both types. The port 27017 is for MongoDB server, port 29810-29813 is for the communication between EAP and Omada Controlelr. Browse for "mongod.exe" executable (in %Program Files%\MongoDB\Server\X.Y\bin. Click "Change settings", then button "Allow another app" will be enabled.Click "Allow an app through firewall" link in bottom part of the window.Go to Firewall and Network protection in Windows settings (Start -> type "Firewall" -> Enter).