WPN Gateway for WinMx4u Web Chat

The executable runs the WinMX gateway and serves the JavaScript web chat.
It requires no additional runtime. The page offers five preset rooms
with RapsMX first and a separate searchable WinMX channel list.

Try it out

  Windows: double-click Start WPN Gateway.cmd from the extracted folder.
  Linux: from the extracted folder, run ./wpn-gateway.
  Open http://127.0.0.1:8080/ and choose a preset room, or open the
  WinMX channel list and select Load channel list.

Fasthosts setup

  Download WPN-WebChat-Static-Site.zip separately. Upload all extracted site files to a folder such as
  /htdocs/webchat. Run the gateway executable on a Windows or Linux
  computer with a reachable web address. Your web server can serve
  the static files even if its hosting plan cannot run executables.

  For your own domain, set the chat-gateway meta tag to the gateway's
  base URL, and set the -host and -site-origin startup flags to the
  hostname of the gateway and the origin serving the static page.
  Allow HTTP and HTTPS versions together with comma-separated origins,
  for example -site-origin http://example.com,https://example.com.
  List up to four trusted gateway URLs separated by spaces in the meta
  tag to provide backups. Each operator must allow your site's origin.
  An active chat stays on the gateway that opened the room connection.
  An HTTP site can use an HTTP or HTTPS gateway. An HTTPS site needs
  an HTTPS gateway because browsers block insecure chat requests from
  secure pages. For HTTPS, run WPN Gateway behind a TLS reverse proxy
  or a named tunnel. Chat traffic sent over HTTP is visible in transit.

  The gateway uses a built-in list of WinMX peer caches by default.
  Set -peer-cache to switch to another WinMX cache. Pass -peer-cache=
  for preset rooms only. The default preset list can be replaced with
  -rooms filename.json (an array of objects with id, name and address).

  The gateway refreshes in the background and replaces wpn-channels.json
  only after a successful lookup. Share this file beside the static chat
  page to give first-time visitors a starting snapshot. Browsers also
  keep the most recent successful list they receive. A saved list can be
  viewed with the gateway offline. Joining a room requires the gateway.

  The existing port and router configuration can be reused. There is
  no subscription change. The gateway computer must be online whenever
  visitors use the chat. This web chat is intended for public rooms.

This static package uses your reachable gateway address. For the outbound HTTPS bridge, download the Web Chat hosting kit from https://rapsmx.com/winmx4u-web-chat.html.
