View Single Post
iretr_0
New Member
Join Date: Jul 2022
Old 07-24-2022 , 12:24   Re: [ANY] Simple Fastdownload
Reply With Quote #19

Hey, first of all thanks for the work.
To anyone having issues with only your localhost being able to get download the maps check your sv_downloadurl:
"sv_downloadurl" = "http://192.168.0.16:27015/fastdl" ( def. "" )
Mine always defaults to my internal ipv4! all you have to do in this case is change sv_downloadurl_hostname to your public ipv4

Anyways that's all good and all but I haven't figured out a way to automate this process.

I have two issues:

I would like to dynamically get/store in a variable (prefferably using srcds stuff only, no .sh or .bat) my public ipv4 so I can, in a cfg file, set sv_downloadurl_hostname to my public ipv4.

and...

I've tried using a fixed value for it but since sv_downloadurl_hostname is a command only available once it's plugin is loaded I can't just plug it into the server.cfg. If anyone knows a way around that too I would love to hear about it.

Anyways, that's where I'm stuck at. I would love some help.
iretr_0 is offline