Valve mounted on end of pipe