My friends are playing on server which shows me 9999 ping, other servers appear with 9999 ping too. I tried to open ports 2302-2305 and 2344-2345 on Windows Firewall, but it still doesn't work. Any help? Many other people have the same problem but I couldn't find the fix.
Sounds like a router issue on your computer
As dave said, sounds like a network issue on the servers end but if you provide some more info regarding the server things can be checked out on this end.