Setting up a local Phoenix licence server

Status
Not open for further replies.

Bui

Skilled Illusionist
Joined
Jan 18, 2012
Messages
335
Reaction score
119
This is a tutorial on setting up your own Phoenix licence server. Basically, running a licence server allow you to continue using the official Phoenix binary instead of using cracks.

For this tutorial, we will be using BIND, the most popular and stable DNS server. You also need to be running PHP, which you probably already are if you run Phoenix on the same server as your CMS.

Let's begin!

1. Download BIND 9 by clicking . Extract the .zip file somewhere, such as your desktop.

2. Run the BINDInstall.exe file in the extracted directory. Set the target directory to C:\BIND and set a secure service account password. Make sure you keep the username set as "named".
Bui - Setting up a local Phoenix licence server - RaGEZONE Forums


3. Wait for BIND to finish installing. Close the installer.
Bui - Setting up a local Phoenix licence server - RaGEZONE Forums


4. Open a text editor and save this as C:\BIND\etc\named.conf:
Code:
options {
    directory "C:\BIND\etc";

    forwarders {
        8.8.8.8; 8.8.4.4;
    };

    auth-nxdomain no;
    listen-on { any; };
    allow-query { any; };
};

zone "otaku.cm" {
    type master;
    file "C:\BIND\etc\otaku.cm.db";
};

5. Open a text editor and save this as C:\BIND\etc\otaku.cm.db, but replace 1.2.3.4 with your server's IP address.
Code:
otaku.cm. IN SOA ns1.otaku.cm. admin.otaku.cm. (

2006081401
28800
3600
604800
38400 )

otaku.cm. IN NS ns1.otaku.cm.
otaku.cm. IN A 1.2.3.4
ns1 IN A 1.2.3.4

6. Open a command prompt and start BIND by typing net start named:
Bui - Setting up a local Phoenix licence server - RaGEZONE Forums


7. Configure your server's DNS settings by following the steps in this spoiler:
1. Enter the Network and Sharing Center by clicking on the network icon in the system tray.
Bui - Setting up a local Phoenix licence server - RaGEZONE Forums


2. Click on the connection, usually it is labeled Local Area Connection.
Bui - Setting up a local Phoenix licence server - RaGEZONE Forums


3. Click on Properties.

4. Click on Internet Protocol Version 4 (TCP/IPv4) in the list, and click Properties.
Bui - Setting up a local Phoenix licence server - RaGEZONE Forums


5. In the bottom pair of input boxes, make sure the Use the following DNS server addresses radio box is checked. In the Preferred DNS server, input 127.0.0.1. In the Alternate DNS server, input 8.8.8.8 (or another DNS server). Do not tick the validate box, then click OK.
Bui - Setting up a local Phoenix licence server - RaGEZONE Forums
8. In a command prompt, ping otaku.cm. If the IP is anything other than what you set previously, restart your server and try pinging again. It should now be correct.

9. Create a "phx" directory in your web server root (htdocs/www/etc.). Inside that directory, create a licence.php file with this as its contents:
Code:
<?php

    if (!function_exists('getallheaders')) {
        function getallheaders() {
            $headers = '';
            foreach ($_SERVER as $name => $value) {
                if (substr($name, 0, 5) == 'HTTP_') {
                   $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
                }
            }
            return $headers;
        }
    }

    $res = getallheaders();

    if (isset($res['Authname'])) {
        $user = $res['Authname'];
    } else {
        $user = "Bui";
    }

    if (isset($res['Authpass'])) {
        $pass = $res['Authpass'];
    } else {
        $pass = "nope";
    }

    $k1 = "CF4E14B54958188F9EC4A75CBE1B2B4C";
    $k1 = strtoupper(md5($k1 . $user));
    $k1 = strtoupper(md5($k1 . $pass));
    $k1 = strtoupper(md5($k1 . strlen($user)));
    $k1 = strtoupper(md5($k1 . strlen($pass)));

    $k2 = strtoupper(md5(strlen($user) * 14986));
    $k3 = strtoupper(md5(strlen($pass) % 14986));

    header('AuthU: ' . strlen($user));
    header('AuthGen: ' . strtoupper(md5(strlen($user) * strlen($pass))) . 'a669d0dc7051ddb9d102157cca675e57' . $k1 . $k2 . $k3);
    header('MinBuild: 14986');
    header('CurBuild: 14986');
    header('ExtraData: 0.0.0.0:1232:1233');
    header('dce: true');

?>

10. Create another file named override.php in the phx directory, and just put the IP of whoever you want to give override status (I recommend 127.0.0.1). No PHP code needed.

11. In your Phoenix config, make sure you have this line, but feel free to replace 1232 with the TCP port of your choice:
Code:
game.tcp.port=1232

12. Run the emulator. Hopefully, everything should work fine.

If you encounter any problems during the tutorial, post them here and I'll get back to you. Enjoy your licence server!
 
Last edited:
It would help if you translated that...
And try to crop your screenshots.

It means that my access is not allowed whilst I've installed it correctly. This is rather annoying though
 
So now I've followed the whole tutorial done what it said and now again I'm getting this.

Yes I've tried to Flush the DNS Setting didn't work. Yes I've changed DNS To 127.0.0.1 - 8.8.8.8 and yet it didn't work very annoying.



Bui - Setting up a local Phoenix licence server - RaGEZONE Forums
 

Attachments

  • I3NUoQP - Setting up a local Phoenix licence server - RaGEZONE Forums
    I3NUoQP.webp
    14.1 KB · Views: 82
So now I've followed the whole tutorial done what it said and now again I'm getting this.

Yes I've tried to Flush the DNS Setting didn't work. Yes I've changed DNS To 127.0.0.1 - 8.8.8.8 and yet it didn't work very annoying.

Does work? If not, make sure the licence (phx) directory is correct.
 
I think that's what I've done wrong.

Edit: I've added that to /phx/ Folder and it shows a blank page.

Yet that didn't work either..
 
I think that's what I've done wrong.

Edit: I've added that to /phx/ Folder and it shows a blank page.

Yet that didn't work either..

Blank page is normal, licence.php only returns headers. If ping otaku.cm doesn't give you your server's IP, there's something wrong with your DNS settings.
 
Blank page is normal, licence.php only returns headers. If ping otaku.cm doesn't give you your server's IP, there's something wrong with your DNS settings.

It seems to answer as i put it in; Otaku.cm -> 127.0.0.1 So i don't think anything is wrong with my DNS settings because I've put it exactly as you said on the tutorial
 
It seems to answer as i put it in; Otaku.cm -> 127.0.0.1 So i don't think anything is wrong with my DNS settings because I've put it exactly as you said on the tutorial

No, 127.0.0.1 is not your server's IP. Put your public IP in otaku.cm.db and restart BIND.

And no, don't bother asking how to do that.
 
So just to make it easy: If I'm running my hotel via Hamachi. (As i don't own a VPS And I'm not able to portforward) Then i should just put in that IP? as said before I'm not good at this and as shown I'm scared of failing and having to re-do it.
 
So just to make it easy: If I'm running my hotel via Hamachi. (As i don't own a VPS And I'm not able to portforward) Then i should just put in that IP? as said before I'm not good at this and as shown I'm scared of failing and having to re-do it.

You can't do that. You need to forward UDP port 53 in order to use BIND.
 
Oh well I'll just use you're DNS in order to use the emulator because i can't port forward at all and i don't really know how to port forward via a modem.
 
Status
Not open for further replies.
Back