Setting up a Battlenet/pvpgn-1.8.1 server

Here is how I installed my pvpgn (bnet) server. It will be installed on linux without the mysql or pgsql support, which are used to store account information and only benefit servers with more than 100 active users or if you need to have ladder information appear on your website. In this installation simple file form was used.

Download the pvpgn file from here and upload+extract it to some folder on your server.

Once extracted open the src subdirectory inside the main folder, type in console cd /path-to-pvpgn/src

Then type ./configure –prefix=<path-where-you-want-to-install> or just ./configure to default install in /usr/local

In console type: make and once that is done without errors, type: make install

Now install the support files from here and extract into, by default install directory: /usr/local/var/files

The configuration file is located in, by default install directory: /usr/local/etc/ – and its the bnetd.conf file. I didn’t have to configure anything other than the server name.

The server should work with just that. If you are behind a router like I am, then you should open ports 6200 and 6112… or that’s what I did 😀

Finally start your server by typing: /usr/local/sbin/bnetd (that’s again the default install directory)

Thats all! It would be nice to hear if this helps someone or if something should be edited, so leave comments 😉


16 Responses to “Setting up a Battlenet/pvpgn-1.8.1 server”

  1. 1 marten April 11, 2008 at 10:57 am

    i’ll try this, thx;)

  2. 2 yordhan May 16, 2008 at 6:25 am

    Hallo Morphs,
    Sorry about my english languages.
    i have been install pvpgn-1.8.2 with mysl support under windows and working properly.

    but, i can not succed to install pvpgn-stats-2.4.6, after playing a game, it is look like, the games does not saved the statistic into record table on mysql server.

    could you give me the explanation howto solve this problem,


  3. 3 morphex May 16, 2008 at 7:55 am

    I haven’t tried this on Windows, but I might give it a shot later today. Atleast in linux you need to install it with mysql support.

    • 4 Gizmo September 5, 2009 at 2:27 am

      Hi Morphex !

      I tried to install the 1.8 server on my ubuntu, the installation is ok, but when i launch the bnetd executable, nothing appears to happen. could you help me to solve this problem please ?

      Thank you !


  4. 5 pho3nix90 October 26, 2008 at 5:39 pm

    Hi, im trying to instal it on my server, but my server is with a company, now how do i do this? I dont know how to open the console threw cpanel or should i use another program ect?

  5. 6 morphex October 27, 2008 at 9:43 am

    What kind of server do you have? I am guessing that you will not be able to do this on the server, since you probably have very limited access. So I doubt you could install it, and if you could you’d need to somehow open the correct ports, and I doubt they’d do that for you.

  6. 7 farseer January 13, 2009 at 5:08 pm

    hey can any one please tell me how to create your on bnet server on windows xp.step by step.Any help will be appreciated

  7. 8 farseer January 13, 2009 at 5:09 pm

    i mean how to create you own server on bnet using windows xp 😛

  8. 9 morphex January 15, 2009 at 12:35 pm

    You need Borland C++ to compile it for Win32. There are some instructions in the docs directory when you download the pvpgn source. Sorry this is not a very good answer, but I hope it leads you the right way.

  9. 10 farseer January 15, 2009 at 5:48 pm

    cant understand 😦
    plz tell step by step

  10. 11 morphex January 16, 2009 at 2:50 pm

    I haven’t done this on windows so I can’t really walk you through step by step, but here’s what I said before, more detailed.

    From download the latest pvpgn stable source, open it and look for a folder called docs.

    Once in docs look for the .txt files which explain how to compile the server with either Borland or Dev-C. The instructions might look pretty complicated, but if you follow them VERY carefully everything should work.

    Other than that, I can’t really help you out more. Use linux 😛

  11. 12 Riveira February 14, 2009 at 6:31 pm

    Hola mens, Espero q hablen español Y,Y ! Alguien podria explicarme bien eso de montar un server PvPGN en Linux? … he visto q un serve REd-g lo ha hecho , y es mas ha compilado el PvPGN a español ( osea totalmente todo ta en spanish..xD ) Enseñen T:T o pasame tu mail plz , para hablar

  12. 13 PCD June 5, 2009 at 3:58 pm

    Hello Morphex,

    I has installed 1.8.5 to your tutorial.
    All folders ok but it does not work?
    I have changed in conf file: Servername =”ownname”
    Start with: /usr/local/sbin/bnetd
    (no txt etc after ENTER only new commandline : root: /usr/local/sbin)
    Now in bnet. gateway editor i filled my data:

    Name: Own Name
    Zone: -1


    But detect Gateway failed. No conect.

    U have an idee?

    • 14 PCD June 5, 2009 at 4:36 pm

      Okay problem was support files 😉
      Wrong directory.
      Connect to server okay. But in Game i cant enter bnet.

      Ping Test in gateway editor:
      Attempt to connect Gateway BLZ(…

      Gamestart WII TFT Says on connect:

      You try to connect to invalid or illegal bnet server.

      WTF ?? ^^

  13. 15 louis May 25, 2012 at 9:51 am

    please help me with pvpgn server

    Hello, I’ve created my own pvpgn server. my current pvpgn server version is 1.8.5 can I access my own server without pvpgn server running? Because if I shut down my pc, the server shuts down too, and all the users in-game are gonna be disconnected. is it possible to go to my own server without my pvpgn server running? if it is, please tell me how.. what actions do i take? thanks in advance.. 🙂

    • 16 morphex May 25, 2012 at 1:02 pm

      Oh its been a very long time since ive played around with the pvpgn server 😀 However, I believe that you need to have the server running to access it. The only way you can edit the settings offline is by modifying the server configuration files on the server machine. Furthermore, your pvpgn server is not related to the official servers and thus you aren’t running a server either. So the answer is no, you cannot go to such server without the pvpgn server running and when you shut down, your users will also disconnect. Hope this helped, and keep in mind that at this moment my advice could be faulty as I haven’t used the server in years. Have a good summer 😀

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


Write comments if you have something you need to ask.

Current OS:

Arch Linux / Windows 7

%d bloggers like this: