Connect and allow multiple ip's for mongodb accepting connectionsHow to query MongoDB with “like”?create ElasticSearch river for MongoDb replicasetNode red MongoDB Connection Error: failed to connect to [123:27017]Express http only working with localhost but not with external ip http connectionMongoDB bind_ip won't work unless set to 0.0.0.0Minimal Mongoose SSL connection codeUnable to connect to MongDB through IP addressWhy node server not listening mongodb port running on localhost ?bind multiple IP in mongoDb 4.x.xUnable to connect to MongoDB on EC2
The more + the + comparative degree
What is the opposite of "hunger level"?
Simulation optimisation: Monte carlo simulation, regression, optimise within regression model?
Did Pope Urban II issue the papal bull "terra nullius" in 1095?
Who is the controller of a Pacifism enchanting my creature?
What's a good pattern to calculate a variable only when it is used the first time?
Bringing Power Supplies on Plane?
Can the average speed of a moving body be 0?
English article "A" vs "The"
How can I find files in directories listed in a file?
Is there a fallacy about "appeal to 'big words'"?
Will using a resistor in series with a LED to control its voltage increase the total energy expenditure?
Why does this Jet Provost strikemaster have a textured leading edge?
What is the proper name for a circle with a line through it?
Help, I cannot decide when to start the story
Doesn't the speed of light limit imply the same electron can be annihilated twice?
How much can I judge a company based on a phone screening?
How would armour (and combat) change if the fighter didn't need to actually wear it?
Good textbook for queueing theory and performance modeling
Attacking the Hydra
Why aren't rockets built with truss structures inside their fuel & oxidizer tanks to increase structural strength?
Are there any low-level means to *exit* the Ethereal plane to a plane of my choosing?
Is this bar slide trick shown on Cheers real or a visual effect?
Number in overlapping range
Connect and allow multiple ip's for mongodb accepting connections
How to query MongoDB with “like”?create ElasticSearch river for MongoDb replicasetNode red MongoDB Connection Error: failed to connect to [123:27017]Express http only working with localhost but not with external ip http connectionMongoDB bind_ip won't work unless set to 0.0.0.0Minimal Mongoose SSL connection codeUnable to connect to MongDB through IP addressWhy node server not listening mongodb port running on localhost ?bind multiple IP in mongoDb 4.x.xUnable to connect to MongoDB on EC2
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have a mongodb config file where bind ip is 127.0.0.1
Now mongodb is hosted on one instance and nodejs server is hosted on another instance which ip is (dummy ip) 184.54.125.132
On my mongodb Config file is
net:
port: 27017
bindIp: 0.0.0.0
By this my node server connect because it allows all (which is wrong)
How I add localhost ip of mongodb and my node server ip on bindIp so that mongodb server will listen only through node server and mongodb local.
I tried
bindIP: [127.0.0.1,184.54.125.132] //Not work
I tried
bindIp: 127.0.0.1,184.54.125.132 //Not work
I tried
bind_ip: [127.0.0.1,184.54.125.132] //Not work
I tried
bind_ip: 127.0.0.1,184.54.125.132 //Not work
Anyone suggest me where I am doing mistake. I also enabled authentication
node.js mongodb mongoose
add a comment |
I have a mongodb config file where bind ip is 127.0.0.1
Now mongodb is hosted on one instance and nodejs server is hosted on another instance which ip is (dummy ip) 184.54.125.132
On my mongodb Config file is
net:
port: 27017
bindIp: 0.0.0.0
By this my node server connect because it allows all (which is wrong)
How I add localhost ip of mongodb and my node server ip on bindIp so that mongodb server will listen only through node server and mongodb local.
I tried
bindIP: [127.0.0.1,184.54.125.132] //Not work
I tried
bindIp: 127.0.0.1,184.54.125.132 //Not work
I tried
bind_ip: [127.0.0.1,184.54.125.132] //Not work
I tried
bind_ip: 127.0.0.1,184.54.125.132 //Not work
Anyone suggest me where I am doing mistake. I also enabled authentication
node.js mongodb mongoose
Are you trying to use bindIP to whitelist clients? That is not its purpose.
– PeterVC
Mar 27 at 12:50
I want my mongodb access only to selected ip
– Aks
Mar 27 at 14:12
Then bindIP will not do what you want. The purpose if bindIP is to tell Mongodb which interfaces to listen for connections on, not which addresses to accept connections from.
– PeterVC
Mar 27 at 19:40
Dear @PeterVC I want the security that my mongo is in contact with only node server and local access (Mongodb server acess i.e 127.0.0.1). I am on aws ec2 instance
– Aks
Mar 28 at 5:39
add a comment |
I have a mongodb config file where bind ip is 127.0.0.1
Now mongodb is hosted on one instance and nodejs server is hosted on another instance which ip is (dummy ip) 184.54.125.132
On my mongodb Config file is
net:
port: 27017
bindIp: 0.0.0.0
By this my node server connect because it allows all (which is wrong)
How I add localhost ip of mongodb and my node server ip on bindIp so that mongodb server will listen only through node server and mongodb local.
I tried
bindIP: [127.0.0.1,184.54.125.132] //Not work
I tried
bindIp: 127.0.0.1,184.54.125.132 //Not work
I tried
bind_ip: [127.0.0.1,184.54.125.132] //Not work
I tried
bind_ip: 127.0.0.1,184.54.125.132 //Not work
Anyone suggest me where I am doing mistake. I also enabled authentication
node.js mongodb mongoose
I have a mongodb config file where bind ip is 127.0.0.1
Now mongodb is hosted on one instance and nodejs server is hosted on another instance which ip is (dummy ip) 184.54.125.132
On my mongodb Config file is
net:
port: 27017
bindIp: 0.0.0.0
By this my node server connect because it allows all (which is wrong)
How I add localhost ip of mongodb and my node server ip on bindIp so that mongodb server will listen only through node server and mongodb local.
I tried
bindIP: [127.0.0.1,184.54.125.132] //Not work
I tried
bindIp: 127.0.0.1,184.54.125.132 //Not work
I tried
bind_ip: [127.0.0.1,184.54.125.132] //Not work
I tried
bind_ip: 127.0.0.1,184.54.125.132 //Not work
Anyone suggest me where I am doing mistake. I also enabled authentication
node.js mongodb mongoose
node.js mongodb mongoose
edited Mar 27 at 12:03
Aks
asked Mar 27 at 11:37
AksAks
888 bronze badges
888 bronze badges
Are you trying to use bindIP to whitelist clients? That is not its purpose.
– PeterVC
Mar 27 at 12:50
I want my mongodb access only to selected ip
– Aks
Mar 27 at 14:12
Then bindIP will not do what you want. The purpose if bindIP is to tell Mongodb which interfaces to listen for connections on, not which addresses to accept connections from.
– PeterVC
Mar 27 at 19:40
Dear @PeterVC I want the security that my mongo is in contact with only node server and local access (Mongodb server acess i.e 127.0.0.1). I am on aws ec2 instance
– Aks
Mar 28 at 5:39
add a comment |
Are you trying to use bindIP to whitelist clients? That is not its purpose.
– PeterVC
Mar 27 at 12:50
I want my mongodb access only to selected ip
– Aks
Mar 27 at 14:12
Then bindIP will not do what you want. The purpose if bindIP is to tell Mongodb which interfaces to listen for connections on, not which addresses to accept connections from.
– PeterVC
Mar 27 at 19:40
Dear @PeterVC I want the security that my mongo is in contact with only node server and local access (Mongodb server acess i.e 127.0.0.1). I am on aws ec2 instance
– Aks
Mar 28 at 5:39
Are you trying to use bindIP to whitelist clients? That is not its purpose.
– PeterVC
Mar 27 at 12:50
Are you trying to use bindIP to whitelist clients? That is not its purpose.
– PeterVC
Mar 27 at 12:50
I want my mongodb access only to selected ip
– Aks
Mar 27 at 14:12
I want my mongodb access only to selected ip
– Aks
Mar 27 at 14:12
Then bindIP will not do what you want. The purpose if bindIP is to tell Mongodb which interfaces to listen for connections on, not which addresses to accept connections from.
– PeterVC
Mar 27 at 19:40
Then bindIP will not do what you want. The purpose if bindIP is to tell Mongodb which interfaces to listen for connections on, not which addresses to accept connections from.
– PeterVC
Mar 27 at 19:40
Dear @PeterVC I want the security that my mongo is in contact with only node server and local access (Mongodb server acess i.e 127.0.0.1). I am on aws ec2 instance
– Aks
Mar 28 at 5:39
Dear @PeterVC I want the security that my mongo is in contact with only node server and local access (Mongodb server acess i.e 127.0.0.1). I am on aws ec2 instance
– Aks
Mar 28 at 5:39
add a comment |
1 Answer
1
active
oldest
votes
It should be :
bindIp : 127.0.0.1,184.54.125.132
And dont forget to restart your mongod, after changing the config file, otherwise it wont work.
sudo service mongod restart
or
sudo systemctl mongod restart
.
Also, dont forget to open the port so that outside network can access that port(27017 or whatever port your mongodb is hosted on).
If you are using AWS EC2 to host your mongodb, you need to add that port to your inbound security rules, and that specific IP wherever you want to access it from
yes i am using aws. and my current inbount is anywhere which i want to change. Dear I want to access my mongodb database only for local(ec2 machine instance) and my node server. If I connect through other ip then mongo not allow to make a connection. Please help me for that
– Aks
Mar 28 at 5:38
Did you restart yourmongod
after changing the config file? And what do you mean 'my inbound is anywhere'? It cant be anywhere, you have to specify the port and which IP can access, in the AWS security rules
– Ravi Shankar Bharti
Mar 28 at 5:55
Dear @Ravi Shankar Yes I restart mongod. Currently I am testing that's why using anywhere means 0.0.0.0/0
– Aks
Mar 28 at 9:37
bindIp : 127.0.0.1,184.54.125.132 after doing this when I restart my mongodb through command then it will not start. I checked the mongodb status it returns the error i.e "mongod.service - MongoDB Database Server Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2019-03-28 09:38:27 UTC; 8s ago Docs: docs.mongodb.org/manual Process: 3329 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=48) Main PID: 3329 (code=exited, status=48)"
– Aks
Mar 28 at 9:41
Ravi - he wants to whitelist certain IP addresses. BindIp will not do this.
– PeterVC
Mar 28 at 13:32
|
show 2 more comments
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55376274%2fconnect-and-allow-multiple-ips-for-mongodb-accepting-connections%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It should be :
bindIp : 127.0.0.1,184.54.125.132
And dont forget to restart your mongod, after changing the config file, otherwise it wont work.
sudo service mongod restart
or
sudo systemctl mongod restart
.
Also, dont forget to open the port so that outside network can access that port(27017 or whatever port your mongodb is hosted on).
If you are using AWS EC2 to host your mongodb, you need to add that port to your inbound security rules, and that specific IP wherever you want to access it from
yes i am using aws. and my current inbount is anywhere which i want to change. Dear I want to access my mongodb database only for local(ec2 machine instance) and my node server. If I connect through other ip then mongo not allow to make a connection. Please help me for that
– Aks
Mar 28 at 5:38
Did you restart yourmongod
after changing the config file? And what do you mean 'my inbound is anywhere'? It cant be anywhere, you have to specify the port and which IP can access, in the AWS security rules
– Ravi Shankar Bharti
Mar 28 at 5:55
Dear @Ravi Shankar Yes I restart mongod. Currently I am testing that's why using anywhere means 0.0.0.0/0
– Aks
Mar 28 at 9:37
bindIp : 127.0.0.1,184.54.125.132 after doing this when I restart my mongodb through command then it will not start. I checked the mongodb status it returns the error i.e "mongod.service - MongoDB Database Server Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2019-03-28 09:38:27 UTC; 8s ago Docs: docs.mongodb.org/manual Process: 3329 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=48) Main PID: 3329 (code=exited, status=48)"
– Aks
Mar 28 at 9:41
Ravi - he wants to whitelist certain IP addresses. BindIp will not do this.
– PeterVC
Mar 28 at 13:32
|
show 2 more comments
It should be :
bindIp : 127.0.0.1,184.54.125.132
And dont forget to restart your mongod, after changing the config file, otherwise it wont work.
sudo service mongod restart
or
sudo systemctl mongod restart
.
Also, dont forget to open the port so that outside network can access that port(27017 or whatever port your mongodb is hosted on).
If you are using AWS EC2 to host your mongodb, you need to add that port to your inbound security rules, and that specific IP wherever you want to access it from
yes i am using aws. and my current inbount is anywhere which i want to change. Dear I want to access my mongodb database only for local(ec2 machine instance) and my node server. If I connect through other ip then mongo not allow to make a connection. Please help me for that
– Aks
Mar 28 at 5:38
Did you restart yourmongod
after changing the config file? And what do you mean 'my inbound is anywhere'? It cant be anywhere, you have to specify the port and which IP can access, in the AWS security rules
– Ravi Shankar Bharti
Mar 28 at 5:55
Dear @Ravi Shankar Yes I restart mongod. Currently I am testing that's why using anywhere means 0.0.0.0/0
– Aks
Mar 28 at 9:37
bindIp : 127.0.0.1,184.54.125.132 after doing this when I restart my mongodb through command then it will not start. I checked the mongodb status it returns the error i.e "mongod.service - MongoDB Database Server Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2019-03-28 09:38:27 UTC; 8s ago Docs: docs.mongodb.org/manual Process: 3329 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=48) Main PID: 3329 (code=exited, status=48)"
– Aks
Mar 28 at 9:41
Ravi - he wants to whitelist certain IP addresses. BindIp will not do this.
– PeterVC
Mar 28 at 13:32
|
show 2 more comments
It should be :
bindIp : 127.0.0.1,184.54.125.132
And dont forget to restart your mongod, after changing the config file, otherwise it wont work.
sudo service mongod restart
or
sudo systemctl mongod restart
.
Also, dont forget to open the port so that outside network can access that port(27017 or whatever port your mongodb is hosted on).
If you are using AWS EC2 to host your mongodb, you need to add that port to your inbound security rules, and that specific IP wherever you want to access it from
It should be :
bindIp : 127.0.0.1,184.54.125.132
And dont forget to restart your mongod, after changing the config file, otherwise it wont work.
sudo service mongod restart
or
sudo systemctl mongod restart
.
Also, dont forget to open the port so that outside network can access that port(27017 or whatever port your mongodb is hosted on).
If you are using AWS EC2 to host your mongodb, you need to add that port to your inbound security rules, and that specific IP wherever you want to access it from
answered Mar 27 at 16:39
Ravi Shankar BhartiRavi Shankar Bharti
5,7622 gold badges16 silver badges43 bronze badges
5,7622 gold badges16 silver badges43 bronze badges
yes i am using aws. and my current inbount is anywhere which i want to change. Dear I want to access my mongodb database only for local(ec2 machine instance) and my node server. If I connect through other ip then mongo not allow to make a connection. Please help me for that
– Aks
Mar 28 at 5:38
Did you restart yourmongod
after changing the config file? And what do you mean 'my inbound is anywhere'? It cant be anywhere, you have to specify the port and which IP can access, in the AWS security rules
– Ravi Shankar Bharti
Mar 28 at 5:55
Dear @Ravi Shankar Yes I restart mongod. Currently I am testing that's why using anywhere means 0.0.0.0/0
– Aks
Mar 28 at 9:37
bindIp : 127.0.0.1,184.54.125.132 after doing this when I restart my mongodb through command then it will not start. I checked the mongodb status it returns the error i.e "mongod.service - MongoDB Database Server Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2019-03-28 09:38:27 UTC; 8s ago Docs: docs.mongodb.org/manual Process: 3329 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=48) Main PID: 3329 (code=exited, status=48)"
– Aks
Mar 28 at 9:41
Ravi - he wants to whitelist certain IP addresses. BindIp will not do this.
– PeterVC
Mar 28 at 13:32
|
show 2 more comments
yes i am using aws. and my current inbount is anywhere which i want to change. Dear I want to access my mongodb database only for local(ec2 machine instance) and my node server. If I connect through other ip then mongo not allow to make a connection. Please help me for that
– Aks
Mar 28 at 5:38
Did you restart yourmongod
after changing the config file? And what do you mean 'my inbound is anywhere'? It cant be anywhere, you have to specify the port and which IP can access, in the AWS security rules
– Ravi Shankar Bharti
Mar 28 at 5:55
Dear @Ravi Shankar Yes I restart mongod. Currently I am testing that's why using anywhere means 0.0.0.0/0
– Aks
Mar 28 at 9:37
bindIp : 127.0.0.1,184.54.125.132 after doing this when I restart my mongodb through command then it will not start. I checked the mongodb status it returns the error i.e "mongod.service - MongoDB Database Server Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2019-03-28 09:38:27 UTC; 8s ago Docs: docs.mongodb.org/manual Process: 3329 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=48) Main PID: 3329 (code=exited, status=48)"
– Aks
Mar 28 at 9:41
Ravi - he wants to whitelist certain IP addresses. BindIp will not do this.
– PeterVC
Mar 28 at 13:32
yes i am using aws. and my current inbount is anywhere which i want to change. Dear I want to access my mongodb database only for local(ec2 machine instance) and my node server. If I connect through other ip then mongo not allow to make a connection. Please help me for that
– Aks
Mar 28 at 5:38
yes i am using aws. and my current inbount is anywhere which i want to change. Dear I want to access my mongodb database only for local(ec2 machine instance) and my node server. If I connect through other ip then mongo not allow to make a connection. Please help me for that
– Aks
Mar 28 at 5:38
Did you restart your
mongod
after changing the config file? And what do you mean 'my inbound is anywhere'? It cant be anywhere, you have to specify the port and which IP can access, in the AWS security rules– Ravi Shankar Bharti
Mar 28 at 5:55
Did you restart your
mongod
after changing the config file? And what do you mean 'my inbound is anywhere'? It cant be anywhere, you have to specify the port and which IP can access, in the AWS security rules– Ravi Shankar Bharti
Mar 28 at 5:55
Dear @Ravi Shankar Yes I restart mongod. Currently I am testing that's why using anywhere means 0.0.0.0/0
– Aks
Mar 28 at 9:37
Dear @Ravi Shankar Yes I restart mongod. Currently I am testing that's why using anywhere means 0.0.0.0/0
– Aks
Mar 28 at 9:37
bindIp : 127.0.0.1,184.54.125.132 after doing this when I restart my mongodb through command then it will not start. I checked the mongodb status it returns the error i.e "mongod.service - MongoDB Database Server Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2019-03-28 09:38:27 UTC; 8s ago Docs: docs.mongodb.org/manual Process: 3329 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=48) Main PID: 3329 (code=exited, status=48)"
– Aks
Mar 28 at 9:41
bindIp : 127.0.0.1,184.54.125.132 after doing this when I restart my mongodb through command then it will not start. I checked the mongodb status it returns the error i.e "mongod.service - MongoDB Database Server Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2019-03-28 09:38:27 UTC; 8s ago Docs: docs.mongodb.org/manual Process: 3329 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=48) Main PID: 3329 (code=exited, status=48)"
– Aks
Mar 28 at 9:41
Ravi - he wants to whitelist certain IP addresses. BindIp will not do this.
– PeterVC
Mar 28 at 13:32
Ravi - he wants to whitelist certain IP addresses. BindIp will not do this.
– PeterVC
Mar 28 at 13:32
|
show 2 more comments
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55376274%2fconnect-and-allow-multiple-ips-for-mongodb-accepting-connections%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are you trying to use bindIP to whitelist clients? That is not its purpose.
– PeterVC
Mar 27 at 12:50
I want my mongodb access only to selected ip
– Aks
Mar 27 at 14:12
Then bindIP will not do what you want. The purpose if bindIP is to tell Mongodb which interfaces to listen for connections on, not which addresses to accept connections from.
– PeterVC
Mar 27 at 19:40
Dear @PeterVC I want the security that my mongo is in contact with only node server and local access (Mongodb server acess i.e 127.0.0.1). I am on aws ec2 instance
– Aks
Mar 28 at 5:39