Announcement

Collapse
No announcement yet.

Run game server via FTP ???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Another problem with using the webhost as a Counterstrike server is the same problem you mentioned with the wireless router IP. It is likely that the webhost is also using a router and even if you got a server running the port forwarding will not be set up for you. Not to mention the other problems with lag, etc.

    Don't waste time with this. You can either pay for a online gaming server or try to get the port forwarding working to host something at your home. I and the other people on this forum can help with either of those.

    Comment


    • #17
      Free shells are intended to be used for irc bots/proxies, they don't give you enough resources to run a gameserver. In case your webhost didn't disable system() calls there's the possibility to upload the server via FTP and execute it from a php script, but that will void your contract, and there's no guarantee to work flawlessly (depends on the host)

      The best opportunity is to get an account specifically for this. The cheaper ones don't give you shell access but a preinstalled gameserver that you can configure via FTP or rndc ant then request a restart to apply the new settings. For more money you can also get a fully functional shell or even a VPS so you can install/manage more servers for yourself (gameservers, teamspeak/ventrilo etc.)

      The prices are usually based on the resources used, in the first case you pay per slots the gameserver offers (here in hungary a 16slot CS16 server costs 20 USD, a 32slot costs 35 USD / month), in the second case you pay per memory and cpu time offered.

      Comment


      • #18
        even if you did get a shell access to a free web host which is quite unlikely you would need root access to setup the game server. Also no offence but seeing as how you know absolutely nothing about any of this, running a game server, ssh, root access, etc, i would just suggest you avoid this all together. Start small and get a vps and play around with that and that is something that you would have root access on and might be able to setup a game server on. Start learning linux commands and dont be a total n00b
        member of: AwesomeHd| Demonoid | BMTV | CE | IPT | Waffles | What | TTI | StMusic | S** | G*T | PTM | PTP | SCL | Xbox-Sky| SciHD |

        Comment


        • #19
          FTP stands for File Transfer Protocol. It's basically HTTP for files only. You can have a server run a FTP server application to serve FTP clients. That same server might also run a SSH (secure shell) server application to serve SSH clients. That same server, as you want it to do, can run a CS server to serve CS clients.

          Shell is pretty much a text-based VNC (Remote desktop). You can connect your computer to the SSH server with a SSH client such as Putty. To do that, just download and open Putty, put in "SSH" as the protocol (I think there's a pulldown menu, it might be the default option), enter the IP of your server in the IP field, maybe with a password, and click connect. You shouldn't have to configure anything else. I'm pretty sure shell uses port 22.

          Once you're shelling to your remote server, you can execute certain commands. I'm going to guess that your server runs some form of Linux. Once it shows the connection has completed, you can start executing commands.

          Here's a list of basic commands:
          ls <lists all files in current directory>
          cd [directory] <changes current directory to [directory>
          rm [file] <removes the file, there is no undo for this so be careful>
          cp [file] [where] <copies the file into specified location>

          When you first log in, you'll be in your "home directory". There you may or may not have folders already, depending on the server that your host gave you. You can list whatever is in your home directory by typing "ls" and pressing enter. If there's nothing, make a folder called "hlds" (stands for half-life dedicated server) by typing "mkdir hlds" and typing enter. This time if you press "ls" it should show "hlds". Change into that folder by typing "cd hlds" and pressing enter.

          You'll need to download the steam HLDS updater into your hlds folder you just created. But on shell you can't use firefox or chrome, so you'll need to use a unix command to download it, wget (web-get). You can download that file by executing:
          Code:
          wget http://www.steampowered.com/download/hldsupdatetool.bin
          Once you have the file downloaded, you'll have to execute it
          Code:
          ./hldsupdatetool.bin
          If it says something about permissions, you'll need to enter the following:
          Code:
          chmod +x hldsupdatetool.bin
          Otherwise just answer the questions they give you (type yes) and the server should be installed. To actually have steam install the game, you'll need to execute this. It may take a while.
          Code:
          ./steam
          Code:
          ./steam -command update -game cstrike -dir .
          If you're running CS:S instead of 1.6, you'll need to replace "cstrike" with "Counter-Strike Source"

          Once you have everything installed, you can start the server with the following:
          Code:
          ./srcds_run -game cstrike +map map_name
          I run a TF2 server.
          Official guides:
          Linux dedicated server - TF2 Wiki <- tf2 server
          https://support.steampowered.com/kb_...6758-TCMF-2234 <- official steam guide
          Command Line Options - Valve Developer Community <- list of shell cmds

          Edit 2: HGS is really cheap, only 70 cents per private slot per month. You should really look into it.

          Edit: to reiterate other posts here, you'd be stupid to try and run a game server on a web server. It would take up CRAZY resources. You'll need a dedicated game server hosting to do that. Try hostedgameservers.com I've been with them for a couple of months on Minecraft without any problems. And they're really cheap. Plus they have all the stuff set up for you so you don't have to bother with the code I just wrote.
          Last edited by overdigested; January 28, 2011, 12:30 AM.

          Comment

          Working...
          X