Initialize replica set using the correct port