Skip to content

A very basic, domain based reverse Proxy for Minecraft

License

Notifications You must be signed in to change notification settings

JavaDerg/mc-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mc-Router

A Minecraft reverse proxy based on domains.

What

If you have multiple Minecraft servers running but only a limited number of ports this is for you. Mc-Router allows you to listen on a single port while having many local Minecraft servers it will proxy the connection, to based on the domain used when connecting.

Why

Was to lazy to set up proper DNS records that allow Minecraft to figure out the correct port :)

Building

  1. Make sure you have the most recent rust and cargo version installed, you can update by using rustup update; if you don't have rustup installed you can get it here.
  2. Clone the repo and cd into it.
  3. Run cargo build --release.
  4. You will find the compiled binary in target/release/mc-router (append .exe on Windows);

Usage

  1. Create a config similar to how show in example.json. The server will try to obtain the config path from your environment variables, specifically MCR_CONFIG. (Default is ./mcr.json)

    Additionally, you can provide the interface/port the server should listen on with MCR_INTERFACE. (Default is 0.0.0.0:25565)

  2. Run the server

Notes:

  • The config is automatically hot reloaded, no need to restart the server, doing so would force all current users to lose connection.

About

A very basic, domain based reverse Proxy for Minecraft

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages