-
Type: Question
-
Resolution: Works as Designed
-
Priority: Minor - P4
-
None
-
Affects Version/s: 3.6.12
-
Component/s: None
-
Labels:None
Hi Team,
I am trying to enable remote connection to Mongodb server from internal network ip address. I was able to reach server when binding with 0.0.0.0, but unable to start when adding private ip address.
Config file -
net:
port: 27017
bindIp:10.10.x.x, 10.10.x.x
Logs -
2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] allocator: tcmalloc
2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] modules: none
2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] build environment:
2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] distmod: ubuntu1604
2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] distarch: x86_64
2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] target_arch: x86_64
2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] options: { config: "/etc/mongod.conf", net:
, operationProfiling: { slowOpThresholdMs: 10000 }, processManagement: { timeZoneInfo: "/usr/share/zoneinfo" }, storage: { dbPath: "/data/mongodb", journal:
{ enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "/var/log/mongodb/mongod.log", quiet: true } }
2019-07-14T16:48:16.750+0400 E STORAGE [initandlisten] Failed to set up listener: SocketException: Cannot assign requested address
2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] now exiting
2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] shutting down with code:48