To bypass a water heater you need to put a pipe between the hot and cold water pipes. Two types of valve setups are used for this. They are-three-way valve setup & three bypass valve