Skip to content

DevXH v1.0.2 — Headless Dedicated Server

Latest

Choose a tag to compare

@lldrattles lldrattles released this 10 Oct 01:14

DevXH v1.0.2

Networking-correctness release: two long-standing DevilutionX 1.5.5 bugs that
directly affect DevXH gates are fixed in this fork — one on each side of the
wire.

Fix 1 — servers: --port no longer clobbered by the config file

LoadOptions() re-read [Network] Port from diablo.ini AFTER the command
line was parsed, silently replacing --port 6113/6114 with the ini value
(default 6112). On a multi-gate box without a hand-seeded ini, every instance
bound 6112 and colliding instances lost the bind and exited 0 — invisible to
Restart=on-failure (the exact failure seen while deploying three gates to
one box on 2026-10-04).

v1.0.2 re-applies the CLI port after LoadOptions(). Verified with the
packaged binary: a seeded ini saying Port=6112 plus --port 6113 on the
command line — the v1.0.1 binary binds 6112 (bug), the v1.0.2 binary
binds 6113 (fix).

Seeding per-instance diablo.ini is no longer required (still harmless if
you keep it).

Fix 2 — clients: join addresses may now include a port

Stock DevilutionX 1.5.5 passes the ENTIRE join-dialog string to getaddrinfo
and always dials the client's own configured port. Consequences for DevXH:

  • every host:port join address (i.e. all of them listed on devxh.com,
    including the :6112 rows) failed with RESOLVE: No such host is known
    even with perfect DNS — the colon poisons the hostname lookup
  • a bare address could only ever reach port 6112

tcp_client::join now splits an optional :port suffix (backport of the
upstream-master approach, IPv6-bracket aware) and dials it; with no port it
falls back to the client's own [Network] Port, exactly as in vanilla 1.5.5.
Verified live: us.devxh.com:6114 resolves to the gate and completes a TCP
connect; a 12-case parser fixture covers bare hosts, ip:port, bracketed
IPv6, multi-colon literals and malformed input.

Player workarounds that worked on stock 1.5.5 still work on v1.0.2 clients:
bare hostname for 6112 gates; [Network] Port=<port> in diablo.ini for the
rest.

Package contents

  • devxh-client-v1.0.2-win-x64.zip — Windows x64 CLIENT with both fixes
    (host:port join parsing + cross-built with MinGW GCC 13 posix threads);
    bundles devilutionx.exe, SDL2.dll, libsodium-26.dll, libwinpthread-1.dll
    and README-CLIENT.txt. Verified: launches, creates a live "DevilutionX"
    window, and dials gate host:port addresses correctly.
  • devilutionx-server — Linux x64 binary (glibc 2.35+; only SDL2, SDL2_image,
    zlib as runtime deps — same static-bundling recipe as v1.0.1)
  • devxh-beat.sh + devxh-beat.service — listing agent
  • devxh@.service + devxh-beat@.service + devxh-instance.env.example —
    multi-gate systemd kit (ships in a release tarball for the first time;
    previously distributed separately)
  • INSTALL.txt + HANDBOOK.md — quick start, full CLI reference, multi-gate
    troubleshooting (updated for the --port fix)

Upgrade notes

  • Server-only upgrade: replace devilutionx-server, restart your units. No
    config changes needed; seeded ini files keep working.
  • The client-side join fix reaches players when they run the bundled Windows
    client (devxh-client-v1.0.2-win-x64.zip) or build from this source.
  • MPQs are NOT included; you must own Diablo/Hellfire.

SHA256

689aea8ff089818332442e38f1bebdf35797affd99b382bdeb8ed28cd5adc9c4 devxh-server-v1.0.2-linux-x64.tar.gz
ca79ea6f479903689a9dd4cf59435fa360a7aeffc2338c351fa1edcacc7a64ee devxh-source-v1.0.2.zip
548b1f924a6d76e7ec006dcd35c615d1aea218780f5ea642062e1986cca91181 devxh-client-v1.0.2-win-x64.zip