Skip to content

zardoy/mwc-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Web Client Proxies

This repository contains only the WebSocket proxy for making Minecraft servers accessible to web clients. If you are looking for the Node.js script for hosting a normal proxy server so you can connect to any normal servers with it, please refer to the main repository: prismarine-web-client. The main repo provides a ready-to-use server.js in the zip attachment of the latest release (see the releases page).


Bun WebSocket Proxy

This script allows your Minecraft server to accept WebSocket connections, making it browser-friendly for web-based Minecraft clients. In other words, it will allow to connect to your server by typing something like this this into connect IP field:

wss://ws.your-domain.com

It acts as a bridge between a web client and your Minecraft server by forwarding WebSocket messages to a TCP connection and vice versa without any modifications.

Installation & Usage

  1. Install Bun

  2. Copy ws-proxy.ts to your server

  3. Edit ws-proxy.ts

    • Set YOUR_SERVER_HOST and YOUR_SERVER_PORT to your Minecraft server's IP and port.
    • Set THIS_PUBLIC_IP to your public server address (used for redirects).
  4. Make it keep running with PM2

    (note that you can also use systemctl or any another process manager)

⚠️ Important Notes & Limitations

Warning

  • This script cannot be used on Minecraft hosters that do not allow SSH access or opening extra ports (e.g., Aternos), even if you use a Spigot plugin that does the same thing. These hosters restrict custom server-side processes and port usage.
  • This proxy only makes sense to use if it runs on the same server as your Minecraft server. Running it on a different server will introduce additional ping/latency, and it's generally easier to use the MWC proxy servers instead.

For more information and the web client itself, visit the main repo.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published