Hello,
So - I recently had this problem and yes, I went through all of the so-called 'solutions' to which nothing actually did anything - yet I think the problem can be broken down into 4 areas of concern.
1) It's a problem with your computer security settings
2) It's a game installation problem
3) It's a problem with your browser security settings
4) It's a problem with your router/modem security settings - and possibly your Internet Service Provider
Now then, the steps listed/suggested by others for 1,2,3 can be ticked off the list as being solid, good advice to check punkbuster etc, check your installation etc, check cache folders, check origin has rights at a software firewall level - but these are standard checks we all do as a part of running software on our computers.
So - what is the problem? And how did I solve it?
It is a security problem, and it is (4) on the list.
To solve the problem, you have to INCREMENTALLY LOWER THE SECURITY OF THE HARDWARE FIREWALL CONTAINED WITHIN YOUR ROUTER/MODEM.
To access your router, this is (typically) done by opening a browser and typing 192.168.0.1
From here, you will commonly be asked to input your user-name and password for the router/modem (speak to your ISP for details) - but once authenticated, you should have direct access to the security of the very thing which is A) connecting your computer to the internet and B) controlling the traffic incoming and outgoing.
I would STRONGLY recommend contacting your ISP to talk this through with you, but, these systems built into routers/modems do not have the most friendly of user interfaces, and can be slow to navigate, because you are using a web browser to do so - but fear not, in my experience, these are fairly logical in their structure and have industry standard terminology, such as 'firewall' and 'security'.
This is where the problem lies - and once you have lowered the security by one level and made sure that no traffic is being blocked, boot up BF4 and run a test. If it does not work, try a lower level and so forth.
So, the step process is this:
1) Go to browser and type 192.168.0.1 to log into your router/modem
2) Lower security by one level and ensure no traffic is being blocked - either by yourself, or through consultation with your ISP
3) Test BF4
4) If not resolved, follow steps (1-3)
5) If resolved, go to step 6
6) Miller time. 🍺
*Note - this will not change the security of your computer or your computer firewall - so if your computer currently has sufficient security via the operating system or, security software and, I would always recommend people have high security for their computer AND to regularly change passwords; then this will not change that.
I hope step 6 can be achieved for you all, soon.
Additionally, there are series of commands to run through an elevated command prompt or, powershell - which I run in sequence from time to time, after a periodic restart of the modem, or, after a power cut...that sort of thing:
ipconfig /renew
ipconfig /release
ipconfig /release 6
ipconfig /flushdns
ipconfig /registerdns
And if you forget these, just run:
ipconfig /?
As that will list the above commands, and more.
Once done type:
EXIT
and, basically, Elvis has left the building.