This also worked for me! Warning - if you contact EA, they may give you incorrect information about this. They told me Online play was not part of the Trial version.
How do I get to the firewall settings for Battlefield 5?
bless you, you beautiful *. Hours of support with origin and nothing. But you you're a god.