Try to restart your internet, it happend to me once and i restarted and it worked.
HALP PLEASE! Whenever I join a game now it logs in but gets stuck at "connecting to server" forever.
It was fine before, no changes occurred, the only thing I can remember doing is changing my Origin ID on the EA website, to which I remember it saying, "This might take 30 [something]" to take effect"
What happened? I really want to play
Try to open ports (forward ports) on your router - worked for me to avoid getting stuck at "connecting to server" forever
Enable the following online ports on your connection:
TCP: 80, 443, 9988, 20000-29999, 22990, 17502, 42127
UDP: 3659, 14000-14016, 22990-23006, 25200-25300
For specific instructions on how to open your ports, visit Port Forwarding Guides Listed by Manufacturer and Model - PortForward.com [portforward.com] or contact your router manufacturer.
use a vpn service if its stuck at connecting, i had it too until i used cybe****** vpn now, i can now connect