Error connecting to server

If you find a bug within PR:BF2 (including PRSP), please report it here.
Post Reply
xGHOST11x
Posts: 54
Joined: 2010-11-26 04:50

Error connecting to server

Post by xGHOST11x »

The Error is that I cannot connect but I have an internet connection so I don't think that is the problem. The message it gives me is as follows:
1004: Error connecting to server. (10060)

Then when I go to "support" on the games opening menu this is the error it gives me.

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2014-11-25T16:57:27

Critical Error: An unhandled exception has occured. Details are as follows:

Object reference not set to an instance of an object.

Further details can be found in the following file:

[url]C:\Program Files (x86)\Steam\SteamApps\common\Battlefield 2\mods\pr\bin\PRLauncher.log[/url]

Please report this error to the Project Reality Team, and include the log file in your report.

[url=https://www.realitymod.com/forum/f27-pr-bf2-support]Visit Support Forum[/url]

 > System.NullReferenceException: Object reference not set to an instance of an object.
   at Reality.BF2.GameSpy.GameSpyConnection..()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
Critical Error: An unhandled exception has occured. Details are as follows:

Object reference not set to an instance of an object.

Further details can be found in the following file:

[url]C:\Program Files (x86)\Steam\SteamApps\common\Battlefield 2\mods\pr\bin\PRLauncher.log[/url]

Please report this error to the Project Reality Team, and include the log file in your report.

[url=https://www.realitymod.com/forum/f27-pr-bf2-support]Visit Support Forum[/url]

 > System.NullReferenceException: Object reference not set to an instance of an object.
   at Reality.BF2.GameSpy.GameSpyConnection..()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
[/b]
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: Error connecting to server

Post by LITOralis.nMd »

Right, something is blocking your connection to our custom emulated 'GameSpy' auth servers,
those are the online login auth servers for BF2.

specifically these ports
UDP:
29900 , Gamespy port
29910 , Gamespy port

Two ways to troubleshoot this:
1. Your router might be acting foolish in regards to forwarding ports to your PC:
You can try this automated solution
[quote=""'[R-COM"]LITOralis.nMd']
WarGrade" wrote:I think that i found a solution!!!!
(This worked for me and i don't know if it will work for others)

1. Download 'Portforward Setup Static IP Adress' (completely free)
2. Install it......
3. When you run it, at the bottom there should be a button that says 'Make it Dynamic' click that button and it will make your IP address dynamic.
4. Run the PR launcher and you should get an update.

It should be FIXED!
I'm sorry if it doesn't work for anyone else.
[/QUOTE]

2. You can manually enter the TDP and UDP ports that BF2 and PR need to operate:

[quote=""'[R-COM"]LITOralis.nMd']
thepalerider" wrote:You guys sure when you get disconnected PnkBstrB is still running and all 3 instances are still set to auto-restart?
When is the last time you ran PBsetup to update Punkbuster (first thing you should do when you have a disconnect out of the blue)

Check your router's logs for "**UDP Flood to Host**" or similar warnings ( from:router / connection problem / voip / multiple lan players) Check if your router has "IP Flood Detection" enabled. If so turn it off.

Make sure these ports are open on your router
(my router 'D-link Gamers lounge' auto opens these ports for BF2)

TCP
80,Battle recorder port
4711,Remote console
29900,Client+Server
29901,Client Not in use yet
29920,Server Standard Port
28910, Client
44301= PnkBstrA
45301= PnkBstrB


UDP
1500 - 4999,General use
16567,Game port
27900,Stats port
29900,Gamespy port
29910,gamespy port
27901,Stats port
44301 = PnkBstrA,
45301 = PnkBstrB,

55123,VOIP ports
55124,VOIP ports
55215,VOIP ports



Not sure what ports (TCP/UDP)
port for PnkBstrA = 44301
port for PnkBstrB = 45301
should be, so opened for both

I'll try to think of something else, but anyone reading this thread feel free to jump in with new ideas.
Good luck
[/QUOTE]

Most important will be ports 29900, and 29901 for both udp and tcp.

Basically you need to either forward or trigger the ports 27900~27901 and 29900~29910.

SO depending on your router, you'll find a menu called something like
Port Triggering
and enter these values.
Some Name 27900 ~ 27901 27900 ~ 27901 enabled
Some Name2 29900 ~ 29901 29900 ~ 29901 enabled
Arab
PR:BF2 Developer
Posts: 2898
Joined: 2012-05-18 03:37

Re: Error connecting to server

Post by Arab »

What programs run on the background?

AVG definitely causes a conflict, so adding PR.exe & BF2 at the exceptions to prevent it from scanning will make it work.
xGHOST11x
Posts: 54
Joined: 2010-11-26 04:50

Re: Error connecting to server

Post by xGHOST11x »

I am on a college campus using their wifi. Is this going to cause a problem with the options you just listed?


EDIT: The link in the first option doesn't come up with anything. The page is 404. Any other places to look?
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: Error connecting to server

Post by LITOralis.nMd »

xGHOST11x wrote:I am on a college campus using their wifi. Is this going to cause a problem with the options you just listed?


EDIT: The link in the first option doesn't come up with anything. The page is 404. Any other places to look?
Free Software to Setup a Static IP Address - PortForward.com
Post Reply

Return to “PR:BF2 Bugs”