L2JMobius

How to make server online so others can connect

Mobius · 1 · 2553

Online Mobius

  • Distinguished King
  • *****
    • Posts: 16056
To make your server accessible to others from your home, you need to follow several steps,
including setting up your server, configuring your network, and ensuring security measures are in place.


Here's a general guide on how to do this:

Server setup
1. Install the Server: Follow the installation instructions provided in the Project Installation - W64 (install programs to log in game) topic.
2. Configure the Server:
    - Edit the configuration files to set up server properties, rates, and other game-related settings.
    - Ensure the server is running properly locally before making it accessible online.
    - If you own a Static IP Address you do not need to change any of your networking settings.

Network configuration
1. Static IP Address: Assign a static local IP address to the computer running the server. This prevents the IP from changing after reboots.
2. Port Forwarding:
    - Access your router's configuration page (usually through a web browser).
    - Set up port forwarding to direct incoming traffic on specific ports (used by the server) to your server’s local IP address.
    - Common ports for servers are TCP 7777 for the game server and TCP 2106 for the login server. These may vary based on your configuration.
3. Dynamic DNS (Optional):
    - If you have a dynamic public IP address (which changes periodically), consider using a Dynamic DNS service. This gives you a domain name that automatically updates with your current IP address.
    - Configure the Dynamic DNS settings in your router if it supports this feature.

Security measures
1. Firewall Configuration:
    - Configure your computer’s firewall to allow incoming connections on the necessary ports.
    - Be cautious and understand the risks of exposing your computer to the internet.
2. Antivirus and Malware Protection: Ensure you have reliable antivirus and malware protection, as running a server can increase security risks.

Changing server address in client
1. Locate the l2.ini File: Find the l2.ini file in the system folder within the Lineage 2 client installation directory.
2. Edit the File:
    - Use a tool like L2ClientDat Editor to open and edit the l2.ini file. This specialized editor is designed for editing Lineage 2 client files.
    - Change Server IP Address in the l2.ini file, look for the line that specifies the server IP address, usually formatted as "ServerAddr=127.0.0.1".
    - Save the File by clicking the "Save (DAT)" button to save your file.


Note of Caution
Opening your home network to outside connections can pose security risks. Make sure you understand these risks and take appropriate measures to secure your network and server.
If you're unfamiliar with network configuration and security, you might want to seek assistance or consider hosting your server on a dedicated hosting service with better security measures.