Skip to content

Repository files navigation

MultiProtocol

Let Minecraft use multiple protocols, such as WebSocket

Getting started

  1. Download the MultiProtocol plugin and put it in the plugins folder
  2. Start the server
  3. Find the MultiProtocol folder in the plugins and modify the config.yml file
websocket:
enabled: true# Custom path such as path: /minecraft to ws://mc.ixnah.com/minecraftpath: /# Get client real IP through Http request before establishing WebSocket connection# For example, if the CDN does not provide IP header when establishing WebSocket connection, enable this function# After this function is enabled, Query must be added after the path: realAddress such as ws://mc.ixnah.com/?realAddress# With custom path ws://mc.ixnah.com/minecraft?realAddressipFromHttp: false# Get the real IP address of the client through the HeaderrealIpHeaders: [ 'X-Forwarded-For', 'X-Real-Ip' ]# Maximum length of Http contentmaxContentLength: 8192# Enable normal Http request fallback# For example, a normal HTTP request needs to be redirected to https://www.google.com/fallback:
enabled: false# Type: redirect, proxytype: redirect# Add {uri} if you need to pass paths and parameters# For example https://www.google.com/${uri}url: https://www.google.com/# Enable Httpsssl:
enabled: false# The relative path is plugins/MultiProtocol/server.keystorekeyStore: server.keystorekeyStorePassword: 123456keyStoreType: JKS# Enable the WebSocket whitelistwhitelist:
enabled: false# CIDR can be usedaddresses: [ '127.0.0.0/8', '10.0.0.0/8', '192.168.0.0/16' ]
  1. Restart the server
  2. Download the MultiProtocol client mod and put it in the mods folder
  3. Connect to the server as required by the protocol such as ws://mc.ixnah.com/minecraft?realAddress

Supported protocol

  1. WebSocket

WebSocket

Let Minecraft use WebSocket protocol to prevent DDOS attacks or optimize the network

Client(mod required) -> CDN(such as cloudflare) -> GameServer

About

Let Minecraft use multiple protocols, such as Websocket

Topics

Resources

Stars

38 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages