Failed to connect to *serverip* port 30120 after 1000 ms: Couldn't connect to server

Hello,
I am developing a website for a FiveM server (not my FiveM server and web server is somewhere else). I can access the info.json, players.json, dynamic.json (I am unsure if there’s more JSON files) via Google Chrome and Mozilla Firefox just fine.

I try to connect with PHP and CURL and I get the error:

Failed to connect to serverip port 30120 after 1000 ms: Couldn’t connect to server

I’ve tried multiple settings, setting my headers to match a browsers, as well as other various options however this error is persistent. Is there something I have to request from the server owners? I figured if I can access it via browser I should be able to connect via curl, no?

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the Cfx.re community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.