You can get Battlefield 2 for free
here and play it online without any problems, since EA shutdown their official support for BF2. To play FH2 you need to download
FH2 Launcher which will download the latest patch for you. It will also create your online FH2 account on the first launch, after that you will be able to join servers from "mutliplayer" tab in game
NOTE: servers are getting populated mostly in evenings european time.