Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with socket connection... #68

Closed
devonzara opened this issue Nov 14, 2012 · 3 comments
Closed

Problem with socket connection... #68

devonzara opened this issue Nov 14, 2012 · 3 comments
Assignees

Comments

@devonzara
Copy link

I chose a random BF3 server from GameTracker, used your example script, and received the following error:

Fatal error: Uncaught exception 'GameQException' with message 'GameQ::socket_open Error creating socket to server tcp://173.199.67.11:25200. Error: ' in /home/----/public_html/bf3/gq/GameQ.php:709 Stack trace: #0 /home/----/public_html/bf3/gq/GameQ.php(630): GameQ->socket_open(Object(GameQ_Protocols_Bf3)) #1 /home/----/public_html/bf3/gq/GameQ.php(547): GameQ->queryServerInfo(Array) #2 /home/----/public_html/bf3/gq/GameQ.php(407): GameQ->requestMulti(Array) #3 /home/----/public_html/bf3/gq/examples/index.php(28): GameQ->requestData() #4 {main} thrown in /home/----/public_html/bf3/gq/GameQ.php on line 709

Am I missing something?

@Austinb
Copy link
Owner

Austinb commented Nov 14, 2012

I would recommend checking other servers. Various servers (and server providers) block incoming connections to the query ports (and others I imagine) as querying some game servers can become a DDOS attack. All the error means is that it could not connect to the server which means:
a) There is a routing issue from the sever making the call to the actual game sever
b) The request is probably being DROPed at the firewall level so it never responds.

Without having direct access to the server the game is running on it is impossible to tell for sure.

@Austinb Austinb closed this as completed Nov 14, 2012
@devonzara
Copy link
Author

Do you know a server that does work? So that I'm able to isolate as to which end the error is occurring?

Also, don't game browsers query a master server list to retrieve information? Why would one query the individual server instead? Or am I missing a step in how it all works?

I mean, I know with Battlelog on BF3 now - the browser fetches a server list from EA's database which is constantly updated when a round ends, players join, or players leave. I suppose what I'm getting at is, how would a site such as GameTracker get a list of servers if they haven't been told the IP:Port for each of them individually and how are they able to pull statistics?

Thanks

@ghost ghost assigned Austinb Nov 19, 2012
@zeagon
Copy link

zeagon commented Dec 25, 2012

Gametracker has the ip:port from each of their listed server. Try to signup and will notice how they ask for ip and port

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants