headshotbox icon indicating copy to clipboard operation
headshotbox copied to clipboard

Watch not working

Open blastbeng opened this issue 8 years ago • 4 comments

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

blastbeng avatar May 29 '17 22:05 blastbeng

What url are you using to access HeadshotBox? Does is start with http://127.0.0.1?

bugdone avatar May 30 '17 16:05 bugdone

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

blastbeng avatar May 30 '17 23:05 blastbeng

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.

ajohnsen avatar May 31 '17 10:05 ajohnsen

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.

bugdone avatar May 31 '17 11:05 bugdone