Check your roofline for a vertical pipe that extends through the roof to determine where the toilet vent pipe is.
Once you’ve determined an approximate location, look for the vent pipe in your attic. It will appear very similar to the pipe that drains water from a toilet and continues directly upward and through the roof.
Keep in mind that homes can have more than one pipe if there is more than one bathroom.