Unable to add nodes into Replicaset

The problem was when you did the first rs.init(). I guess you didn’t provide a config there and it took localhost by default.

Send a new config with the correct hostname or IP address. Then add the new node.