[SERVER-408] add capability to bind to several IPs e.g. hostname,192.168.0.191,127.0.0.1 Created: 05/Nov/09  Updated: 12/Jul/16  Resolved: 07/Apr/10

Status: Closed
Project: Core Server
Component/s: Usability
Affects Version/s: None
Fix Version/s: 1.5.0

Type: Improvement Priority: Trivial - P5
Reporter: Melvin D. Protacio Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Comments   
Comment by Eliot Horowitz (Inactive) [ 26/Apr/10 ]

in a release

Comment by auto [ 05/Apr/10 ]

Author:

{'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}

Message: support listening on multiple sockets.

Defaults to all IPv4 and all IPv6 addresses and a unix socket.
SERVER-866 SERVER-859 SERVER-408
http://github.com/mongodb/mongo/commit/df4874f9a809302f71f8366c368346f981291fbd

Comment by Eliot Horowitz (Inactive) [ 05/Nov/09 ]

that seems like a problem on your setup.
how are you starting the db?
can you do "netstat -an | grep LISTEN"

Comment by Melvin D. Protacio [ 05/Nov/09 ]

it doesn't. when i run the daemon without the bind_ip parameter, it only accepts localhost and not 127.0.0.1, i don't know if the problem is on my setup.

Comment by Eliot Horowitz (Inactive) [ 05/Nov/09 ]

if you want to bind to all those ips, why not just bind to everything using default?

Comment by Melvin D. Protacio [ 05/Nov/09 ]

this should be doable so that i could create an instance and connect to it using localhost, 127.0.0.1, internal ip, public ip

somewhat related to http://jira.mongodb.org/browse/SERVER-32 but this time, multiple ips

Generated at Thu Feb 08 02:54:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.