@inner I don’t think your code needs to be connecting to a master at all in replication-4. Your code IS the master (—replicaof is NOT present as an arg). Is it possible that your program has some kind of default value set for the master address host and port and it’s attempting to connect to that? (I.e it’s behaving as a replica when it should just be a master?)