headshotbox
headshotbox copied to clipboard
Watch not working
Hello, how can i configure the watch feature?
when i click watch on a single round or on an entire match i get in chrome: api/demo/4/watch Failed to load resource: the server responded with a status of 404 (Not Found)
what should i do? thanks
What url are you using to access HeadshotBox?
Does is start with http://127.0.0.1?
Hmmmm... yes it works if i use 127.0.0.1, actually i am using a remote internal ip because it is installed on my server... (192.168.1.x) and with this ip it doesn't work
have you remembered to check the 'Run in web mode' in the settings under server? if that isn't checked and you press the Watch button you will get a 404..
At least i do from my testing.
Enabling web mode would actually make it work with the private ip address only if the demo directory is set to the replays/ folder of your csgo installation.
The problem here is that the code tries to check if the machine that made the request is the same with the server and it does a poor job at it. It just looks for loopback ips (127.x.x.x) instead of going through all ips of all network interfaces.