Raps MX Server

Host WinMX chat rooms independently of the desktop client, with configurable access, moderation and bot compatibility.

How I built it

I wrote the original RMXS Alpha 2 server in C# on .NET so it could share the WinMX networking code with my other apps. In Raps MX Server Linux, I ported room hosting to Python and used its standard library so the room can run with the Python already installed on Linux. The x86-64 listing prototype pairs that Python server with a bundled native Linux publisher compiled from my C# WinMX listing code. That reuses the existing protocol implementation and keeps setup free of a separate .NET installation.

Raps MX Server Linux x86-64

This test build hosts a WinMX chat room and can list it on the WinMX Peer Network. It requires x86-64 Linux with glibc and Python 3.10 or newer. The archive includes the native channel publisher and requires no separate .NET runtime or Python packages.

SHA-256 a2c6ce0f30ccfb63a1edd73860c1cc6cdcb7bee28225a5144f2e55c6461da015

Start and join your first room

  1. Check that uname -m prints x86_64 and python3 --version reports 3.10 or newer.
  2. Extract the archive into a folder you can write to. Open the extracted rmxs-python folder.
  3. In room.json, change name to the name you want. For a test on the same computer, set "listen": "127.0.0.1" and "listed": false before starting. Keep valid JSON and save the file.
  4. Open a terminal in that folder and run sh start.sh. You can also use Start Raps MX Server Linux if your desktop supports launchers. Keep the terminal open.
  5. Copy the full address after LAN join address, including the underscore and suffix. Paste it into the WinMX client’s chat room address field and join. Type /help for room commands. To become Host, use /login KEY with the key from Host Key.txt and keep the file private.

Let guests join

Stop or troubleshoot

Press Ctrl+C to stop the server. Check rmxs-diagnostics.log next to room.json for startup, listing and connection details. If the room works locally but fails from outside, check the server firewall, router forwarding and whether your internet connection has a reachable public IPv4 address. The included START-HERE.md covers configuration and the optional systemd user service.

Start a private test room

  1. Install the standard .NET 10 Runtime. Extract to a writable folder.
  2. For a private test, use Server address = 127.0.0.1, Allow remote guests = 0 and Show channel = 0. The bot compatibility preview comes with local test settings.
  3. On Windows, run Start Room Host.cmd. On Linux, run dotnet App/RoomHost.dll config from the extracted folder. Copy the address from Room online.
  4. In WinMx4u, paste the full address into Chat and join. For a bot, use the same full address in AIMX. Stop the server with Ctrl+C.
[Room 1]
Channel name = RMXS Bot Test
Room port = 6258
Start room = 1
Show channel = 0

Host for other users

RapsMX Server Alpha 2 connection log. Handshake complete. Online on the WinMX Peer Network.
Connection output from a live RMXS Alpha 2 test with an unlisted room. Look for the final line to confirm the server is online.
  1. Set a host password, or use Host password = auto and keep the generated Host Key file private.
  2. Allow remote guests, set the server address, and open only the chosen room TCP ports and the separate Primary TCP/UDP ports needed by your setup.
  3. To advertise a room, enable its Show channel switch and configure the peer cache. Set a public room limit that covers your chosen listed rooms.
  4. Test the full room address from outside your LAN where possible. Check the channel listing separately. Hidden rooms can still accept direct joins when remote access is enabled.

Use the full room address the server prints. A different public IP address or room port changes the final address suffix.

Room staff and bot accounts

  1. Join as a participant. In the room, use /login KEY for the host or /login LOGIN KEY for a named account.
  2. Create the appropriate login section in config, select the role, and set its password or key environment variable. Keep passwords private.
  3. For AIMX or a legacy bot, set Bot = 1 on the named account. In the compatibility preview select Ouka, WCS, E-Serv or Native for the room and restart. Test the bot’s greeting, longest reply and triggers before moving a live bot.

The WCS profile provides the identity used by older clients. The Ouka profile recognises Ouka newline markers in public bot text. The E-Serv profile adds rate-limited /notice output for authenticated bots and operators.

Configuration reference

Edit the file named config next to the launcher. Each room has its own section and can have its own moderation, logging and login sections. Use /reload for supported live changes and restart for changes to listeners or compatibility profiles.

Server address
Use 127.0.0.1 for local tests, a reachable address for remote guests, or auto when the peer-cache configuration can report the public address.
Allow remote guests
Set to 0 for a local trial. Set to 1 when guests should connect from elsewhere.
Host password
Use auto to generate a private host key, or provide a private host password. Remote hosting requires a valid host key.
Peer Cache and Port
Hostname and secondary discovery port used to find the WinMX network.
Primary TCP port and Primary UDP port
Ports for the separate Primary network connection. The Primary TCP port must differ from all room ports.
Maximum peers and Public room limit
Control primary peer connections and the number of advertised rooms. Public room limit is 1–4.
Channel name, Room port and Start room
Set the visible name, a unique TCP port and whether that room starts. Restart for startup changes.
Capacity and Connections per IP
Set the room maximum from 1 to 600 and the cap per address. Set the per-address cap to 0 for unlimited.
Show channel
Choose public listing. A hidden room can still be reached by its full address when remote guests are allowed.
Topic and Welcome message
Set the room description and the message shown to guests as they join.
Require password and Entry password
Enable a room entry password and set its value. This is separate from a staff login.
Bot compatibility
In the compatibility preview choose Native, Ouka, WCS or E-Serv per room and restart. These profiles cover selected bot behaviours.
Visibility access and Redirect access
Set the minimum staff role for each operation. Use Admin, Cohost or Host.
Disabled commands
Enter a comma-separated list of optional commands to disable in that room.
Log chat
Enable a local log of public chat and actions if needed.
Block bad words and Blocked words
Enable word filtering and supply the comma-separated list for this room.
Named login sections
Set Role and Password, or Key environment for an environment-provided key. Use Bot = 1 for a named bot account.

Room commands

Redirect users to another room

Type the command in the room you host. Sign in with the host or staff access required for redirects. Use the destination's full WinMX address, including the underscore and 12-character suffix.

/redirect <destination room address>
Sends the room's guests to the destination. The host and room admins stay. Example /redirect English Help_7B0200C01A2B.
/redirectuser "<username>" <destination room address>
Sends only the named guest. Use the username shown in chat. A full username with its numeric ID also works and is needed if two people show the same name. Example /redirectuser "Example User" English Help_7B0200C01A2B. Everyone else stays.

These are example addresses. Replace them with the destination's real address. The single-user command requires a build that includes it.

Higher roles can use commands available to lower roles. Use /commands in the room to see what your account can do.

/login PASSWORD (Joining)
Enters a password-protected room when prompted.
/login LOGIN KEY (User)
Signs in to a named role after entering the room. Locally you can also use a unique role key by itself. The host key uses /login KEY.
/logout (User)
Drops your current role and temporary privileges.
/uptime (User)
Shows how long the room and server have been running.
/commands, /help (User)
Shows the commands available at your current access level.
/channelname (User)
Prints the full room address so you can copy it.
/me TEXT, /action TEXT, /emote TEXT (User)
Sends an action.
/msg USER TEXT, /message USER TEXT (User)
Sends a room-private message. Put a name with spaces in quotes.
Same commands as User (Member)
Adds the voiced marker in compatible clients.
/topic TEXT (Admin)
Changes the topic.
/motd TEXT (Admin)
Changes the welcome message or motto.
/opmsg TEXT (Admin)
Messages room staff.
/kick USER, /ban USER (Admin)
Removes a lower-ranked user. Ban also saves their IP address.
/listbans, /unban IP (Admin)
Lists saved bans or removes one.
/block NAME, /unblock NAME, /listblocks (Admin)
Saves, removes or lists username blocks.
/setlogin LOGIN NEWKEY (Admin)
Changes an existing login below your access level for this server session. Change config for the next restart.
/op USER, /deop USER (Cohost)
Grants or removes temporary admin rights.
/setpassword PASSWORD, /rempassword (Cohost)
Changes or removes the room entry password for this session.
/limit NUMBER (Cohost)
Changes room capacity, from 1 to 600.
/save, /load, /reload (Host)
Save room settings, read edited settings, or save and reload when the file is unchanged.
All of the above (Host)
Has the highest access level. Set the host key in configuration or the environment.
Examples for all RMXS room commands

Replace the sample usernames, passwords and addresses with your own values. Type the commands in the room chat box. The room command list shows the access each command needs.

/login ROOM_PASSWORD
Enter a password-protected room when prompted. Example /login ExampleRoomPassword.
/login ACCOUNT KEY
Sign in to your assigned staff account after joining. Example /login cohost ExampleKey.
/logout
Return to ordinary guest access. Example /logout.
/uptime
Show how long the room has been running. Example /uptime.
/help or /commands
Show the commands you can use with your current role. Example /commands.
/channelname
Show the full address of the room you are in. Example /channelname.
/me, /action or /emote
Send an action to the room. Example /me waves hello.
/msg or /message
Send a private message to one person in the room. Example /msg "Example User" Hello.
/topic
Change the room topic. Example /topic Music requests are open.
/motd
Change the welcome message shown on arrival. Example /motd Welcome to the room!.
/opmsg
Send a message to room staff. Example /opmsg Please check the queue.
/kick
Remove a guest from the room. Example /kick "Example User".
/ban
Remove a guest and save an IP ban. Example /ban "Example User".
/listbans
List the room's saved IP bans. Example /listbans.
/unban
Remove a saved IP ban. Example /unban 192.0.2.10.
/clearbans
Remove all saved IP bans for this room. Example /clearbans.
/block
Block a username from entering. Example /block "Example User".
/unblock
Remove a username block. Example /unblock "Example User".
/listblocks
Show blocked usernames. Example /listblocks.
/setlogin
Change a lower-ranked account's key for this server session. Example /setlogin cohost ExampleNewKey.
/op
Grant temporary admin access to a guest. Example /op "Example User".
/deop
Remove temporary admin access. Example /deop "Example User".
/setpassword
Require a room entry password. Example /setpassword ExampleRoomPassword.
/rempassword
Remove the room entry password. Example /rempassword.
/limit
Set room capacity. With no number, show the current limit. Example /limit 40.
/redirect
Send guests to the full destination room address. Staff stay. Example /redirect English Help_7B0200C01A2B.
/redirectuser
Send one guest. You can use the visible name or full name with ID. Example /redirectuser "Example User" English Help_7B0200C01A2B.
/visible
Hide the room in channel lists while allowing direct joins. Use on to list it again. Example /visible off.
/save
Save room settings. Example /save.
/load
Read settings from the edited room configuration. Example /load.
/reload
Apply the server's reload workflow to this room. Example /reload.

How RMXS compares with other WinMX chat servers

WCS by KingMacro (KM)
A standalone server with its own room configuration and access conventions. RMXS gives hosts named staff and bot accounts and offers a WCS compatibility mode for supported bot interactions. KingMacro’s archive
E-Serv by Eagle
A server for Windows and Linux with configurable access levels and administration from chat. RMXS also supports Windows and Linux and offers a separate E-Serv compatibility mode alongside its named room roles. E-Serv guide
Ouka Chat Server
Ouka’s server has English and Japanese releases and its own command conventions. RMXS includes an Ouka compatibility mode so hosts can test the bots they already use. Ouka’s archive

RMXS is a standalone option if you want to set up a room with named access roles and use AIMX alongside it. The compatibility modes cover selected behaviours. Try your existing scripts and commands in a private room before moving a busy public room.

A massive thank you to WinMX World

I used WinMX World as a reference throughout much of the development of the applications I share here on RapsMX. A massive thank you to everyone who put those guides, technical notes and archives together and kept them available. Without those resources, building these applications would have been much harder. I might never have managed it at all.

I also want to thank Bender and the MXControl contributors for RoboMX and BendMX, KingMacro (KM) for WCS, the developers behind FXServer, Ouka for the Ouka Chat Server, and every developer who built WinMX clients, servers, bots and tools before me. I studied the source code they shared and tested how their applications behaved on the WinMX Peer Network. Both helped me understand how the network works and build the applications I share here.

Thank you to the MXPie and WinMX World teams, the peer-cache operators, room hosts, testers and everyone in the WinMX community who has helped keep the network connected over the years. I appreciate the work that kept WinMX running and kept its knowledge available for people like me to learn from.