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?