It's only free from Portsmouth to Gosport if no-one sees me get on the ferry. I always paid at the Gosport side and bought a 2 way ticket. There is a ticket machine on the Portsmouth side but have never tried the experiment of attempting to board the ferry on that side without a ticket