Cannot get Internet-clients to download files

General discussion and help regarding JK2MV.
Post Reply
Tsubasa
Posts: 18
Joined: 17 Feb 2016, 00:22

Cannot get Internet-clients to download files

Post by Tsubasa »

I'm having trouble with an HTTP setup that worked on older versions of JK2MV.

I've tried 1.3.1 and 1.3-169 Win32-x64 Portable for server and client.
The server is running Dueler's Mod 1.4, mv_httpdownloads is 1 and mv_httpserverport is set to https://[Dropbox URL].

Local connections can grab every file the server wants to push, but Internet connections fail to download and see the following error:

"Error:
Download Error:
connecting failed:
Unknown error"

I tried dropping the 's' in https, but no change. The URL itself still works and I know the setup worked for JK2MV1.1. Is there something new I have to change to make it work on the latest versions, or is Dropbox not good for this sort of thing anymore?

Edit: I get the feeling the issue is with Dropbox. I just tested all of the stable JK2MV releases from 1.1 to 1.2.1 for both server and client and they all produced the same error.

Edit2: I just noticed that when I visit my Dropbox URL and then open one of the folders inside, part of the URL changes. Simply adding the folder to the end of the real URL leads to a 404. I really want to have my server push files to clients using HTTP; any alternative methods/services I should try?
Kevin
Administrator
Posts: 393
Joined: 07 Jun 2015, 08:36

Re: Cannot get Internet-clients to download files

Post by Kevin »

Tsubasa wrote: 07 Sep 2017, 08:26 Edit2: I just noticed that when I visit my Dropbox URL and then open one of the folders inside, part of the URL changes. Simply adding the folder to the end of the real URL leads to a 404. I really want to have my server push files to clients using HTTP; any alternative methods/services I should try?
I personally just have the files on the server itself, and leave the JK2MV http port as it is by default. Then whenever a player connects to your server it will just grab the file directly from there. You can also define a blacklist, if there are certain pk3's you don't want people to have. That is how most people do it I believe, and it works excellent - don't see many reasons to go for an external Dropbox folder? :)
Tsubasa
Posts: 18
Joined: 17 Feb 2016, 00:22

Re: Cannot get Internet-clients to download files

Post by Tsubasa »

The server is my PC, so using Dropbox to supply the files would keep other clients from lagging and me from having to open more ports.

Also, I've noticed my server doesn't even try to push files when I turn the HTTP functions off.

Edit: For now I'm doing as suggested and it's working fine (though far from ideal). I'm curious though, if I run sv_allowdownload while HTTP is enabled, will JK2MV favor HTTP as the download source? I think I had a non-MV client on my server today and I want to make sure everyone can get what they need. Might also be worth mentioning that the entire setup is running on one port right now.
User avatar
ouned
Administrator
Posts: 596
Joined: 23 Feb 2015, 13:03
Location: Gliese581c

Re: Cannot get Internet-clients to download files

Post by ouned »

JK2MV doesn't support https (TLS) and I think this is most likely the issue. Dropbox probably doesn't allow unencrypted connections anymore and just forwards http URLs to https. (I didn't check that)
We should add TLS support to JK2MV.

Yes, jk2mv automatically prefers http downloads over UDP.
I recommend to disable UDP downloads, it's too slow anyway.
Tsubasa
Posts: 18
Joined: 17 Feb 2016, 00:22

Re: Cannot get Internet-clients to download files

Post by Tsubasa »

Looks like you're right about Dropbox; all of my connection attempts were forced into HTTPS. Looking forward to trying again when TLS is added.

Sounds like there technically isn't an issue if I run both download systems. I think it's implied in the documentation, but does the UDP system respect the Ref files like HTTP does? My understanding is a server only tries to push the file(s) it says it's referencing with sv_referencedPakNames.
User avatar
fau
Staff
Posts: 433
Joined: 16 Aug 2015, 01:01
Location: Warsaw / Poland
Contact:

Re: Cannot get Internet-clients to download files

Post by fau »

udp downloads work fine alongside http downloads. At a first glance whitelist/blacklist work too, but better test it yourself.
Tsubasa
Posts: 18
Joined: 17 Feb 2016, 00:22

Re: Cannot get Internet-clients to download files

Post by Tsubasa »

Extensive testing confirmed that PK3 Referencing fully works as intended in every scenario I could think of; both regular and MV clients received only what was listed on the server.
Post Reply
Created by Matti from StylesFactory.pl and Warlords of Draenor (modified by jk2.info)
Powered by phpBB® Forum Software © phpBB Limited