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

Watch not working #199

Open
blastbeng opened this issue May 29, 2017 · 4 comments
Open

Watch not working #199

blastbeng opened this issue May 29, 2017 · 4 comments
Labels

Comments

@blastbeng
Copy link

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

@bugdone
Copy link
Owner

bugdone commented May 30, 2017

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

@blastbeng
Copy link
Author

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

@bugdone bugdone added the bug label May 31, 2017
@ajohnsen
Copy link
Contributor

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.

@bugdone
Copy link
Owner

bugdone commented May 31, 2017

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.

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

No branches or pull requests

3 participants