To find it, you'll need to:
1. Consult a repair manual: A factory service manual for your specific year and model Ranger will show you a diagram of the fuel system, including the vent line's routing and the vent's location.
2. Look near the fuel tank: Start by looking around the fuel tank itself. The vent line is usually a small-diameter hose connected to the tank, and it will likely run to a location where it can vent fumes safely. This could be under the truck bed (common), near the filler neck, or even up near the chassis.
3. Follow the fuel filler neck: Trace the fuel filler neck from the gas cap. The vent line is sometimes routed somewhat close to the filler neck, but not always directly connected.
4. Inspect the charcoal canister (if equipped): Some vehicles use a charcoal canister to control evaporative emissions. If your Ranger has one, the vent line will often connect to it. The canister is typically located under the hood or in the engine compartment, but you might have to look for it more carefully.
Because the location isn't consistently documented outside of a repair manual, visual inspection is necessary. Be careful when working near the fuel tank and lines. Avoid sparks or open flames.