Setting up a local Phoenix licence server

Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    beep Bui is offline
    MemberRank
    Jan 2012 Join Date
    United KingdomLocation
    459Posts

    note Setting up a local Phoenix licence server

    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 here. 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".


    3. Wait for BIND to finish installing. Close the installer.


    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:


    7. Configure your server's DNS settings by following the steps in this spoiler:
    Spoiler:
    1. Enter the Network and Sharing Center by clicking on the network icon in the system tray.


    2. Click on the connection, usually it is labeled Local Area Connection.


    3. Click on Properties.

    4. Click on Internet Protocol Version 4 (TCP/IPv4) in the list, and click Properties.


    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.

    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 by Bui; 27-04-13 at 08:12 PM.


  2. #2
    Owner of Habbo.ac iRaged is offline
    MemberRank
    Nov 2011 Join Date
    229Posts

    Re: Setting up a local Phoenix licence server

    Excellent Job! Thank you for this! It will help a lot of us out there :)

  3. #3
    Not so spooky... MrSpooks is offline
    MemberRank
    May 2010 Join Date
    Under a rockLocation
    1,068Posts

    Re: Setting up a local Phoenix licence server

    An excellent tutorial! cheers dude!

  4. #4
    retired Andrew is offline
    MemberRank
    Jun 2008 Join Date
    985Posts

    Re: Setting up a local Phoenix licence server

    ...or you could just make a php script and change the hosts file to your web server instead?

  5. #5
    beep Bui is offline
    MemberRank
    Jan 2012 Join Date
    United KingdomLocation
    459Posts

    Re: Setting up a local Phoenix licence server

    Quote Originally Posted by Andrew View Post
    ...or you could just make a php script and change the hosts file to your web server instead?
    Phoenix doesn't run if "otaku" is in your hosts file.

  6. #6
    Banned Spruitje is offline
    BannedRank
    Mar 2013 Join Date
    NL, AmsterdamLocation
    34Posts

    Re: Setting up a local Phoenix licence server

    This doesn't work for me though.


  7. #7
    beep Bui is offline
    MemberRank
    Jan 2012 Join Date
    United KingdomLocation
    459Posts

    Re: Setting up a local Phoenix licence server

    Quote Originally Posted by Spruitje View Post
    This doesn't work for me though.
    It would help if you translated that...
    And try to crop your screenshots.

  8. #8
    Banned Spruitje is offline
    BannedRank
    Mar 2013 Join Date
    NL, AmsterdamLocation
    34Posts

    Re: Setting up a local Phoenix licence server

    Quote Originally Posted by Bui View Post
    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

  9. #9
    beep Bui is offline
    MemberRank
    Jan 2012 Join Date
    United KingdomLocation
    459Posts

    Re: Setting up a local Phoenix licence server

    Quote Originally Posted by Spruitje View Post
    It means that my access is not allowed whilst I've installed it correctly. This is rather annoying though
    You need to run command prompt as administrator.

  10. #10
    Banned Spruitje is offline
    BannedRank
    Mar 2013 Join Date
    NL, AmsterdamLocation
    34Posts

    Re: Setting up a local Phoenix licence server

    Quote Originally Posted by Bui View Post
    You need to run command prompt as administrator.
    And how the hell do i run that command as administrator. I have no clue what to do and how to get this working.

  11. #11
    beep Bui is offline
    MemberRank
    Jan 2012 Join Date
    United KingdomLocation
    459Posts

    Re: Setting up a local Phoenix licence server

    Quote Originally Posted by Spruitje View Post
    And how the hell do i run that command as administrator. I have no clue what to do and how to get this working.
    What am I, your minder?

    https://www.google.co.uk/search?q=ho...+administrator

  12. #12
    Banned Spruitje is offline
    BannedRank
    Mar 2013 Join Date
    NL, AmsterdamLocation
    34Posts

    Re: Setting up a local Phoenix licence server

    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.




  13. #13
    beep Bui is offline
    MemberRank
    Jan 2012 Join Date
    United KingdomLocation
    459Posts

    Re: Setting up a local Phoenix licence server

    Quote Originally Posted by Spruitje View Post
    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 http://otaku.cm/phx/licence.php work? If not, make sure the licence (phx) directory is correct.

  14. #14
    Banned Spruitje is offline
    BannedRank
    Mar 2013 Join Date
    NL, AmsterdamLocation
    34Posts

    Re: Setting up a local Phoenix licence server

    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..

  15. #15
    beep Bui is offline
    MemberRank
    Jan 2012 Join Date
    United KingdomLocation
    459Posts

    Re: Setting up a local Phoenix licence server

    Quote Originally Posted by Spruitje View Post
    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.



Page 1 of 2 12 LastLast

Advertisement