Configuartion
This will brief you on how to configure the server details like IP/Port and listening address. And how to activate them.
You can find these configurations in
The details IP, port and server name is saved as variable which can be changed and accessed both in-and-out the class. The variables are:
Variable | Type of variable | Variable Description |
---|---|---|
IP | String | IP Adress to listen for incoming clients. |
PORT | Integer | Port to listen with correesponding to IP. |
NAME | String | Name of te server (Optional) |
Below is an example of configuring server, by initiating the Airtower class.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | using System; using System.Collections.Generic; using System.Linq; using System.Text; // Times using Server.Utils.Events; using Server.net; using Server.Log; using Client; public class TestServer { public static void Main() { Airtower loginServer = new Airtower("127.0.0.1", 6112); // You can auto-config here loginServer.IP = "new IP"; loginServer.Name = "Times Test v2"; // You can access and edit it out-the class too! } } |