The drain piping starts with a standpipe— a vertical pipe that connects to a P-trap at the bottom and is open at the top to receive the washing machine's drain hose. The vent must be within 60 inches of the P-trap (for a 2-inch drain). After the P-trap, the drain can tie ...