I've got a few things that you might try to fix the problem.
1) Add PRLauncher.exe and PRBF2.exe as exceptions to the Antivirus software.
2) Go to Documents and delete the ProjectReality folder. Make sure you know your profile password or email to retrieve it, and backup any screenshots optionally.
3) Delete the Firewall entries for Windows. Go to the Start Menu and type in firewall.cpl.
Go to 'Advanced settings' to bring up the Windows Defender Firewall with Advanced Security window.
Select 'Inbound Rules' and delete all Project Reality entries.
Run the game in Windowed mode so that you can press 'Allow' for Windows Firewall and then afterwards set your profile back to normal.
4) Change Hosts file back to normal.
Some entries that can be blocked by Hosts Filters are used by Project Reality to contact the Master Service to query for the servers.
Go to C:\Windows\System32\drivers\etc and open HOSTS with Notepad.
Copy the code below and paste then save:
Code: Select all
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
5. Uninstall Punkbuster. Although PR doesn't use Punkbuster and there's no known conflict, it's better to remove it if you don't have games that use it. Or you can switch to Punkbuster Service.
6. If it's the router firewall, you might want to forward them using your routers settings.
Here is a list of ports used by Battlefield 2:
http://findports.com/document.php?tag=battlefield-2