Your dryer needs to vent outside your home. Why is that? Well, if you were to extract all the water from an average load of laundry, you would get about a gallon worth of water. Since it comes out as steam, you would have water condensing all over the basement, or laundry room, wherever there was a cold surface, which can lead to mold and other water damage.
So, how should you run your dryer vent? It needs to be as straight as possible. If your hose is bent and pinched behind the dryer, there is a possibility that you will have lint build up that will catch fire.
The vent on the outside of your home should have a cover that prevents pests from gaining entry into your home. The vent also needs to be located at least 3 feet away from doors and windows so that the moist air won’t be sucked back in.