mongodb : listen() attempts to access socket in a forbidden way
mongodb : listen() attempts to access socket in a forbidden way
I downloaded 64-bit zipped version of mongodb for windows, created '/data/db' as instructed.
Now, when I run "mongod" command, I am getting the following error & the mongodb server shuts down automatically.
"ERROR : listen() failed error-10013. An attempt was made to access socket in a way forbidden by its access permissions. "
Please help me to clear the firewall settings in windows to prevent this error & run mongodb.
Perhaps better to put your comment in an answer and accept it. It can be useful to other users.
– kranteg
May 18 '14 at 17:50
2 Answers
2
I know this question has already been answered, but this error also seems to happen when mongod is already running. On Windows 10, mongod will be listed under Background Processes in the Task Manager if it is running. If it is already running, ending the task should allow you to run mongod again without this error occurring. Also check that it is not running as a service; it may be set to restart automatically.
I was able to fix the error by using the following command : "mongod --bind_ip="127.0.0.1". :)
This did not help me
– odiszapc
May 17 '16 at 12:54
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
I was able to fix the error by using the following command : "mongod --bind_ip="127.0.0.1". :)
– Dharshni
May 18 '14 at 10:14