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

Autodetection not working, likely due to machine having multiple IP addresses #260

Closed
wjdp opened this issue Jan 29, 2023 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@wjdp
Copy link

wjdp commented Jan 29, 2023

I'm running prefill on the same machine as lancache, prefilling only works if I set the DNS resolver of that machine to itself. Without this it does not detect lancache.

I don't want to have this config as the machine is depending on itself for DNS. I went looking for an option to manually point prefill at the correct IP and it seems you did have a DNS override option (seen in #45) but it was removed in lieu of auto-detection.

My machines network setup is:

  • 'main IP' 192.168.1.10/24, this hosts many services and systemd's resolver
  • 'lancache IP' 192.168.1.11/24 this only runs the lancache DNS and HTTP servers

I'm guessing autodetection isn't finding the second IP. Any ideas on best way to proceed?

@tpill90 tpill90 added the bug Something isn't working label Feb 1, 2023
@tpill90 tpill90 added the pending release Fix has been merged, needs to be published label Feb 1, 2023
@tpill90
Copy link
Owner

tpill90 commented Feb 1, 2023

Hi Will, thanks for the report!

I actually have ran into this myself when I was testing out adding another IP to my server, I just didn't bother fixing since nobody else ran into it yet 😆

I was able to reproduce this on my server, and I've written a fix for it. Since I was able to reproduce it, I've confirmed the fix as working on my machine.

Would you mind giving this build another test just to confirm that it resolves your issue?
https://github.com/tpill90/steam-lancache-prefill/actions/runs/4067257199

@wjdp
Copy link
Author

wjdp commented Feb 1, 2023

Just given this a go, seems to be working brilliantly! With server's DNS set back to settings before the download starts and can see lancache being used. Thank you very much for looking into this so quickly.

mars ⋊> ~/b/SteamPrefill-1.9.0-linux-x64 dig lancache.steamcontent.com                                          20:17:01

; <<>> DiG 9.18.1-1ubuntu1.3-Ubuntu <<>> lancache.steamcontent.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44464
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;lancache.steamcontent.com.     IN      A

;; ANSWER SECTION:
lancache.steamcontent.com. 6811 IN      CNAME   origin-tier2.steampipe.steamcontent.com.
origin-tier2.steampipe.steamcontent.com. 222 IN CNAME steampipe-origin-tier2.steamcontent.com.
steampipe-origin-tier2.steamcontent.com. 222 IN A 205.196.6.144
steampipe-origin-tier2.steamcontent.com. 222 IN A 205.196.6.174

;; Query time: 32 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Wed Feb 01 20:17:08 GMT 2023
;; MSG SIZE  rcvd: 160

mars ⋊> ~/b/SteamPrefill-1.9.0-linux-x64 steam-prefill prefill                                                  20:17:08
[8:17:16 PM] Starting login!
[8:17:17 PM] Logged into Steam
[8:17:17 PM] Steam session initialization complete!

[8:17:19 PM] Starting Metro: Last Light Redux
[8:17:21 PM] Downloading 7.49 GiB
... downloads correctly

And for completeness just double checked the old version still yields the error, build above definitely does fix it

mars ⋊> ~/b/SteamPrefill-1.9.0-linux-x64 ./SteamPrefill.default  prefill                                        20:17:22[8:22:34 PM] Starting login!
[8:22:35 PM] Logged into Steam
[8:22:35 PM] Steam session initialization complete!

[8:22:37 PM] Starting Metro: Last Light Redux
[8:22:38 PM] Downloading 7.49 GiB
 Warning!  lancache.steamcontent.com is resolving to a public IP address (205.196.6.174).
 Prefill will download directly from the internet, and will not be cached by Lancache.

@tpill90
Copy link
Owner

tpill90 commented Feb 1, 2023

Absolutely no problem! I will include this in the next release.

@tpill90 tpill90 removed the pending release Fix has been merged, needs to be published label Feb 18, 2023
@tpill90
Copy link
Owner

tpill90 commented Feb 18, 2023

Released in v1.9.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants