usharani_K
(Usharani K)
7
Hi Jack,
Coming back to my first question.
I have created the service initially with the following parameter
“C:\Program Files\MongoDB\Server\4.0\bin\mongod.exe” -f “C:\Program Files\MongoDB\Server\mongodb_config.yml” --bind_ip=hostname --port=9876 --serviceName “MongoDB” --serviceDisplayName “MongoDB” --serviceDescription “MongoDB Server” “–dbpath=C:\data” “–logpath=C:\data\log.txt” --service
Here I have used only --bindip paramater which has the value of fully qualified hostname.
after service created, it started listening with ipv4 static address(ex: 123.87.98.187) with the port 9876.
Now, I am restarting the PC, my expectation is that the port 9876 should listen in the same ipv4 static address(ex: 123.87.98.187). But it is listening with loopback ipAddress 127.0.0.1. Due to this communication is not happening and timeout exception is occuring.
Why this difference happening in MongoDB component? or what should I change to make it works properly?