Hey Guys,
I saw very people with problems when try host matrix 3, including me, but i requested to Daron and he helped me! i will show how to Host.
You will Need Eclipse, Java and The Matrix 3 Source! Is Very Simple!
1- Go To Settings.java
- change 7777 to 43594
- change 7778 to 43595
- change 127.0.0.1 : 127.0.0.1
to your ip here : 127.0.0.1 same thing for the other 2 and make the last one just your ip.
Port forward 43593, 43594, 43595,
Arguments is hosted: false, non-hosted: true.
Look The code:
Code:
package com.rs;
import java.math.BigInteger;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import java.util.Arrays;
import com.rs.game.WorldTile;
import com.rs.game.player.Player;
import com.rs.login.WorldInformation;
import com.rs.utils.Utils;
public final class Settings {
public static final String SERVER_NAME = "Aegis NTX";
public static final String CACHE_PATH = System.getProperty("user.home") + "/830_cache/";
public static final String LOGIN_DATA_PATH = "data/accounts_data";
public static final String DATA_PATH = "data/server_data";
public static final InetSocketAddress GAME_ADDRESS_BASE = new InetSocketAddress("0.0.0.0", 43593);
public static InetSocketAddress LOGIN_SERVER_ADDRESS_BASE;
public static InetSocketAddress LOGIN_CLIENT_ADDRESS_BASE;
public static WorldInformation[] WORLDS_INFORMATION;
public static void init() throws UnknownHostException {
LOGIN_SERVER_ADDRESS_BASE = new InetSocketAddress(Settings.HOSTED ? "198.27.209.207" : "127.0.0.1", 43594);
LOGIN_CLIENT_ADDRESS_BASE = new InetSocketAddress(Settings.HOSTED ? "198.27.209.207" : "127.0.0.1", 43595);
if(Settings.HOSTED) {
WORLDS_INFORMATION = new WorldInformation[] {
new WorldInformation(1, 0, "World1", 0, 0x1 | 0x8, "Europe", "198.27.209.207", 100)
};
}else{
WORLDS_INFORMATION = new WorldInformation[] {
new WorldInformation(1, 0, "World1", 0, 0x1 | 0x8, "Europe", NONHOSTED_SHARING ? "198.27.209.207" : "198.27.209.207", 100)
};
}
}
public static final int WEBSITE_CLIENT_PORT = 43598;
public static final String WEBSITE_CLIENT_PASSWORD = "LLU7szMljNdJ5hZpOYpX38UEdOQi63fp7DjJrRR6MzCbtK";
public static int WORLD_ID = 0;
public static boolean DEBUG = true;
public static boolean HOSTED = false;
public static boolean NONHOSTED_SHARING = true; //basically hosting but not hosting officialy
public static boolean SPAWN_WORLD;
public static boolean ALLOW_MASTER_PASSWORD = true;
If you copy the code you need replace your ip on 198.27.209.207
Later you can change in login.java
0:2 to 0:0
For players login non-adm just player normal
98% credits to daron 2 % for me =P