Skip to main content

Guide to Setting Up L4 Proxy for Simple Voice Chat

The Simple Voice Chat Mod or Plugin requires a very fast connection path with no delay so players' voices don't break up. That's why this mod uses the UDP protocol.

To secure and route this UDP path on Raznar servers, we'll use the L4 Proxy feature (Layer 4 Reverse Proxy). Here are the easy steps:

Step 1: Create a Dedicated Allocation Port

The first step is to prepare a dedicated "door" on your server for this voice path.

  1. Log in to the Raznar Game Panel and open your server.
  2. Go to the Network menu in the left bar.
  3. Create/add a new Allocation Port around the number 9000 (for example 9007).
  4. Note down that port, because we'll use it as the Source Allocation in the next step.

Step 2: Create the L4 Proxy (UDP Path)

Once that's done, continue by creating the UDP "highway" that points to the port you just created.

  1. In the raznar panel menu on the left, find and click L4 Proxy.
  2. Click the blue "Create L4 Proxy" button in the top right corner.
  3. A window (pop-up) will appear:
    • Allocation: Click the dropdown and select the port you created in Step 1 earlier (example: game-gnl-jh6.raznar.net:9007).
    • Protocol: Change from TCP to UDP.
  4. Click "Create L4 Proxy".
  5. IMPORTANT: After it's successfully created, look at the TARGET ADDRESS column. You'll get a new IP and Port (example: 103.xx.203.113:24589). Copy this Target Address.

Step 3: Configure Simple Voice Chat

The last step is to "tell" the Voice Chat plugin/mod to use the IP and Port from the proxy we just created, so players can connect.

  1. Go to the Files menu in the panel.
  2. Find the Voice Chat configuration file.
    • If using the Plugin: Open the plugins/voicechat/voicechat-server.properties folder.
    • If using the Mod: Open the config/voicechat/voicechat-server.properties folder.
  3. Find the line that sets the server Port (usually the topmost option port=...) and make sure its value is your initial port from Step 1 (example: port=9007).
  4. Then, find the voice_host= line.
  5. Paste the Target Address (the new IP along with its port) you got from Step 2 into this part.
    • Example of correct formatting: voice_host=103.xx.205.113:24589.
  6. Click the blue "Save Content" button in the bottom right corner to save the changes.

Step 4: Restart the Server

So the mod/plugin reads the new configuration:

  1. Return to the Console menu.
  2. Click the Restart button.
  3. Check the log in the console. If successful, there will be a notice that the Voice Chat Server successfully started (Bind) on the UDP port you set.

Congratulations! Now the Voice Chat feature on your server is protected by the L4 Proxy and running smoothly on the UDP path!