MAKING IT PUBLIC
okay, you are gonna need to find your EXTERNAL IP, and your INTERNAL IP, write them down.
To find your external IP, go to http://www.whatismyip.com ?
You see the really gigantic numbers? That's your external IP.
Now for your internal IP, hit windows+R(the windows key+ R). type into the run box cmd, and hit enter. A command prompt will pop up. Type ipconfig, and hit enter. In that list, find your IPv4Address, that is your internalIP, write it down. it'll be something like 192.168.x.x probably.
Okay, so the first step is to go onto the old interwebs, to http://www.DynDNS.com
Create an account, then go to account section then on the first list, the fourth one down, is add host services. click that. Type in the name, and choose the domain, choose host with IP address, and use the Auto-detected address. Then right below the address is Edit TTL. Click that, and change the timeout to the second option. Then click create host. Copy that address, it will be used later.
Now, go into your C:\3.0.3 Server\Emu\Configs\ and open your realms config. At the bottom, there is a section that says
Code:
<Realm1 Name = "Legends Realm"
Address = "127.0.0.1:8129"
Icon = "PVP"
Population = "0.0"
TimeZone = "2">
change it to:
Code:
Code:
<Realm1 Name = "Legends Realm"
Address = "<Dynamic DNS address here>:8129"
Icon = "PVP"
Population = "0.0"
TimeZone = "2">
Now you need to open the file C:\Windows\System32\drivers\etc\hosts in notepad. NOTE: Windows vista users must open Notepad as administrator. NOTE(Again): Windows XP users might have to right click and go to properties, and at the bottom, uncheck the little read-only box.
No, inside of the file, you should see
Code:
Code:
127.0.0.1 localhost
now, before that add
Code:
Code:
<external IP> <DynDNS Address>
<internal IP> <DynDNS Address>
127.0.0.1 <DynDNS Address>
Save that.
Now, most everyone nowadays has a router, and the with a router, certain ports go to certain computers, you need to make sure that the ports go to your computer.
go to http://www.PortForward.com To see how to forward ports on your router.
Once you've forwarded them, you must also forward the ports on any firewalls you may have, or just shut them down. Everything is different, so I really can't help you there, if you tell me which firewall, I may be able to help you individually.
The ports you need to forward are:
3306
3724
8129
8093
3727
Now that the ports are forwarded, you need to make sure that they are going through.
Go to http://www.utorrent.com/testport.php?port=<port> to check that port. If it says error, then it is not going through. NOTE: if it doesn't go through, run your server, then check it.
Now your all good to go. To have other people play on your server, have them change their realmlist.wtf to say
Code:
Code:
set realmlist <DynDNS address here>
ACCOUNT CREATION PAGE
Okay, now this part is a bit tricky. Go to http://www.xampp.com and donwload XAMPP.
NOTE: IF YOU HAVE SKYPE, SHUT IT DOWN BEFORE PROCEEEDING.
Now, install it, but make sure to only install the APACHE servie, not the other 2. Once that is done, open up the directory, most likely C:\xampp. and go to htdocs folder. select everything in it, and hit ctrl+X, then move out to the C:\xampp folder again, and create a new folder called temp. enter the folder, and hit ctrl+V.
Now go back to your htdocs folder. make a new text file. Open it and copy and paste this code.
Code:
Code:
<html>
<body>
<form name="input" action="runner.php" method="post">
Username:
<input type="text" name="username">
<br>
Pass:
<input type="text" name="password">
<br>
I have the Burning Crusade
<input type="checkbox" name= "TBC" value="tb">
<br>
I have Wrath of the Lich King
<input type="checkbox" name="WotLK" value="ww">
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>
then click file, save as., and then save it as index.html. NOTE: you must change the bar underneath that say "text file .txt" to "All Files". Next, close the text document. Open up the new document again, it will be blank. Now copy and paste this code.
Code:
Code:
<html>
<body>
<?php
error_reporting(E_ALL);
$name = $_POST['username'];
$pass = $_POST['password'];
$flags=0;
if(!empty($_POST['TBC'])){
$flags+=8;
}
if(!empty($_POST['WotLK'])){
$flags+=16;
}
mysql_connect("localhost","root","<pass>");
mysql_select_db("logondb");
if(mysql_num_rows(mysql_query("SELECT * FROM `accounts` WHERE `login`='$name'"))>0){
echo "UBER FAIL USERNAME TAKEN";
}else{
if(mysql_query("INSERT INTO accounts (login, password,flags) VALUES('$name', '$pass', '$flags' ) ")){
echo"SUPER COOL AWESOME WORKNESS";
}else{
echo"FAIL, try again";
}
}
?>
</body>
</html>
now find the line that says
Code:
Code:
mysql_connect("localhost","root","<pass>");
replace <pass> with your MySQL pass(without the <>).
Now go to your xampp control panel, if it's not already open, there should be an icon on your desktop. and next top the bar that says Apache, click start service, at the bottom in the big text area, it should say Apache service started, if it says that, then your done! If it says "Apache started[port 80]" click start again. repeat until it says apache service started.
now, click file, save as runner.php, and again, make sure it says "All Files"
now your done, if someone needs to access it, they just type in that dynamic dns into a web browser!