Skip to content

Setting up "FastDL" or http server downloads

Emosewaj edited this page Aug 17, 2019 · 2 revisions

Server Configuration

  1. Open your server.cfg file and add these two dvars
set sv_wwwBaseURL "http://domain.com/iw4x/" or "http://0.0.0.0/iw4x/" //if using an IP and not a domain, put the IP of your server
set sv_wwwDownload "1"
  1. Access your webservice via FileZilla or any other client
    If you do not have a website/domain and want to host these locally, follow the instructions for the Windows Webservice or Linux Webservice.
  2. Create a "iw4x" directory in the root folder of your hosted website/domain
  3. Copy your "mods" folder from your IW4x installation into this directory
  4. Make sure the name of the mod you want to use on your server is named correctly
  5. Open a web browser of your choice and go to "http://domain.com/iw4x/" or "http://0.0.0.0/iw4x/"

If set up correctly you will see a mods folder and it will contain your mod files
The final path should look something like this: "http://0.0.0.0/iw4x/mods/modname/z_mod.iwd"

Windows Webservice

If you want to host the files on the same server you host your IW4x game you can follow these steps

  1. Download XAMPP on your windows server
  2. Install XAMPP
  3. Open windows advanced firewall
  4. Click inbound rules
  5. Click add rule
  6. Add a new rule by PORT and specify TCP and port 80
  7. Open XAMPP
  8. Start the Apache service
  9. Open your browser and go to the ip address of your windows server If done correctly you will see an XAMPP welcome page
  10. On the windows server go to C:/xampp/htdocs

Continue from step 3 in the Server Configuration steps

Linux Webservice

If you want to host the files on the same server you host your IW4x game you can follow these steps

  1. Install web server of your choice (Nginx, Apache, etc)
  2. For nginx run the command:
sudo apt install nginx
  1. After nginx is installed run the command:
sudo service nginx start
  1. Go to /var/www/html/
    Continue from step 3 in the Server Configuration steps

Info

  • The files you put on the http downloads MUST be the same files that your server is using
  • If you get an error saying "Unable to download mod.iwd" when you try to join the server, the files are not in the correct place

Thanks to Matrix#7801 for writing up this guide.

Clone this wiki locally