siberlee
Squire
u have to add this to both servers and u have to change this on both servers
this is for main server
2nd server
yes u can connect 2 server or more together with this script i had to edit it alot but it works now i have everything u have to do to get it to work u have to have the script for both servers or all servers
u have to make sure ur other servers are using diffent ports btw
and u have to copy ur account folder to ur test server or to other shards u dont need to move anything but the account folder
i just tested this scripted on a vm server with a different ip and it works like it is ment to do
this is for main server
Code:
public static string Address = "main server ip";
public static string AddressA = "2nd server ip";
public const int Port = main server port;
public const int PortA = 2nd server port;
public const string ServerName = "main server name";
public const string ServerNameA = "2nd server name";
if (ipAddr != null)
{
e.AddServer(ServerName, new IPEndPoint(ipAddr, main server port));
e.AddServer(ServerNameA, new IPEndPoint(ipAddr, 2nd server port));
string MyIP = "your internet ip"; //your internet ip goes here
2nd server
Code:
public static string Address = "2nd server ip";
public static string AddressA = "main server ip";
public const int Port = 2nd server port;
public const int PortA = main server port;
public const string ServerName = "2nd server name";
public const string ServerNameA = "main server name";
if (ipAddr != null)
{
e.AddServer(ServerName, new IPEndPoint(ipAddr, 2nd server port));
e.AddServer(ServerNameA, new IPEndPoint(ipAddr, main server port));
string MyIP = "your internet ip"; //your internet ip goes here
yes u can connect 2 server or more together with this script i had to edit it alot but it works now i have everything u have to do to get it to work u have to have the script for both servers or all servers
u have to make sure ur other servers are using diffent ports btw
and u have to copy ur account folder to ur test server or to other shards u dont need to move anything but the account folder
i just tested this scripted on a vm server with a different ip and it works like it is ment to do