This is the most known RuneScape private server tutorial/guide ever created according to many statistics made by major search engines like Google, Yahoo and such.
In this tutorial you will learn how to make a simple RuneScape private server yourself.
If you don't understand a part, feel free to post your question on our forum.
» Chapter 1
Downloading JDK
First we will need to download Java Sun's JDK.
You can download it at this page.
Click on the most recent JDK version (At the time this has been written: JDK 6 Update 7).
On this page you will have to select your platform, in this guide we will be using Windows as default platform.
Select 'Multi-Language' and check the 'I agree' box.
Check the box 'I agree' and click on one of the 2 downloads you can choose and install it.
We prefer the Offline Installation.
This chapter has been finished. Click here to hide this chapter if you want to, you can simply reactivate this chapter by clicking on it again.
» Chapter 2
Downloading & Installing No-IP
If you do not have your own domain name for your server, you might want to make it easier for people to find your server instead of telling them your whole IP address with all the numbers.
You can do this by using No-IP, No-IP allows you to register a sort of sub-domain redirecting to your IP.
You will be able connect to your server through that No-IP address, there are many extensions available such as the default YourServer.no-ip.org, more information about that later in this chapter.
First of all, go to the official No-IP site by clicking here and start filling in the details it is asking for.
Make sure you are filling in the right details.
They will not use this to contact you, but if you're hosting something illegal while you do not know it, it is better for the police to have these details about you, instead of having them to get you into big troubles.
Once you have completed your registration please go to the Download page.
Select your operating system, in this tutorial we will be using Windows as default, and has therefore been selected in the picture below.
After that you will have to click on "Download", which will lead you to the download.com website where the download will start automatically.
After the download is completed, install the program and start it up.
If you did everything right, you will now have this screen:
On this menu everything will happen.
Click on "Add" on the bottom of the menu, as highlighted in the picture.
This will open your browser and bring you to the No-IP website.
On the navigation click "Add host" and if right, you will receive this form:
In the hostname field fill in your server name, and select the domain you'd like to have as I said above.
Default is no-ip.org/biz/com.
Host Type should be DNS Host (A) and the IP address is already filled in.
Scroll down and click Create Host.
If done, g o back to the main menu of No-IP and click the "Refresh" on the bottom, and your No-IP is configured completely!
This chapter has been finished. Click here to hide this chapter if you want to, you can simply reactivate this chapter by clicking on it again.
» Chapter 3
Opening 43594 Usage
This will be easy, so we'll be going through this a bit fast to skip some unnecessary time.
Open Network & Internet Connections on your computer.
Right click on the connection you're using to connect to the internet and click properties.
Now open the Advanced tab and click on firewall settings.
Open the Exceptions tab and at the bottom you should see a button "Add Port".
Click on it, and add your server name or whatever you want it to be at the Name field.
At the Port number fill in: 43594
43594 is the default port of RuneScape (Private) Servers.
And make sure the TCP box has been checked.
This chapter has been finished. Click here to hide this chapter if you want to, you can simply reactivate this chapter by clicking on it again.
» Chapter 4
Port forwarding (Based on Linksys)
This chapter can be skipped if you do not have a router.
Otherwise, we wish you good luck on this because this will probably be one of the most difficult chapters in the tutorial.
There are many kind of routers, although the Linksys router is the most used router, and therefore we will base this tutorial on a Linksys router.
If you do not have a Linksys router but use another, we advise you to visit the Port Forward site where you can find your router, and follow their tutorial basing it on port 43594.
Ok, open your browser and connect to http://192.168.1.1.
If you did everything right, you will now get this login screen:

Enter your username and password now. By default the username is blank, and the password is admin. Click the Ok button to log in to your router.
If you cannot login with that, we cannot longer help you port forward, either the person that setup your router did not use the default password and username, or configured something wrong.
Once logged in you will come on a webpage with some settings.
Click on the "Applications and Gaming" tab and if right you will now see something like:

On an empty row start filling in this:
| Application Name: | RSPS |
|---|---|
| Start - End Port: | 43594-43594 |
| Protocol: | Both |
| To IP Address: | Local IP address (Read below). |
| Enabled: | Checked/Yes |
How do I find my local IP address?
Go to Start -> Run and type cmd and in the black box type 'ipconfig'. You will see your local IP address there.
Save the settings and you are done.
This chapter has been finished. Click here to hide this chapter if you want to, you can simply reactivate this chapter by clicking on it again.
» Chapter 5
Downloading a server source
Alright, this is not really difficult
Every server has been programmed, and we assume you do not want to spend months writing a complete server from scratch, therefore people release sources of their server.
This means they are giving you the files of their server and you can just use them for your server.
You can download sources at our forums by clicking here.
This chapter has been finished. Click hereto hide this chapter if you want to, you can simply reactivate this chapter by clicking on it again.
Chapter 6
The error 'The system could not find the path specified.' error.
Open up "My Computer".

Click "View System information"

Click "Advanced".

Click "Environment Variables".

Under "User Variables" click "New".

Name it "CLASSPATH" and for the "Variable Value" (only if you have JDK 6u1) put this in: CLASSPATH=C:\Program Files\Java\jdk1.6.0_01\bin;%CLASSPATH%; If you have JDK 6u2, you must enter CLASSPATH=C:\Program Files\Java\jdk1.6.0_02\bin;%CLASSPATH%; for the variable value.

Under "User Variables" click "New".

Name it "PATH" and for the "Variable Value" (only if you have JDK 6u1) put this in: C:\Program Files\Java\jdk1.6.0_01\bin If you have JDK 6u2, you must enter C:\Program Files\Java\jdk1.6.0_02\bin for the variable value.

Click "OK".

Click "OK".

Your computer now recognizes Java.
This chapter has been finished. Click hereto hide this chapter if you want to, you can simply reactivate this chapter by clicking on it again.
» Chapter 7
Edit sources; Examples
Making yourself an Administrator in-game
Testscape & Many other sources
Open your client.java and press Ctrl + F.
You will now get an search box, fill in:
//start of moderator/admin list, 1 = mod, 2 = staff, 3 = admin
if (playerName.equalsIgnoreCase("admin"))
{
playerRights = 3;
}
Its just like 'If the name of the player is: admin give him playerrights 3 (Owner rights)'
Player Rights 4 = Hidden Admin
Player Rights 3 = Server Owner
Player Rights 2 = Server Admin
Player Rights 1 = Server Player Moderator
In Jorsa PK (Pimpscape) based servers you can just open the data folder and open admins/administrators/staff.txt and add a new player to it.
Adding NPC's
To add NPC's you work in autospawn.cfg, not client.java.
Open it and you will see many things looking like eachother.
Now add this somewhere
spawn = NpcID CoordX CoordY 0 0 0 0 0 2 NPC Name
Change CoordX and CoordY to the coords where you want the npc to be.
If you don't know how to get the coords press F4 (Moparscape client).
Also, no your not a ub3r good coder when you made a command or added a npc.
Compiling
After every update in the .java files you have to compile it.
Compiling will make .class files off them and your server runs on them.
For just an easy compiler make a new text file with notepad.
Add this to it:
@echo off title Server Compiler "C:\Program Files\Java\YOURJAVAVERSION\bin\javac.exe" -cp . *.java pause
Copy the folder name and replace 'YOURJAVAVERSION' with the folder name.
Click Save As and save it as a batch file.
To save it as a batch file you can either make it end with .bat or clicking 'All files' at filetype, and adding '.bat' at the end.