Akash/Faris - setting replication port based on protocol