Skip to content

Latest commit

 

History

History
494 lines (378 loc) · 14.4 KB

NETWORKING-GUIDE.md

File metadata and controls

494 lines (378 loc) · 14.4 KB

Heddle Networking And Game Recipes

This guide shows how to use Heddle in common real-world layouts. It focuses on which service to choose, what each computer runs, which side listens, and what must be configured on a LAN or across the internet.

For installation and the complete option reference, see the main README, configuration reference, and heddle.ini.example. Cable and modem-signal requirements are covered in the serial hardware guide. Step-by-step retro-computer setup is in CLIENT-SETUP.md.

Choose The Right Service

Goal Heddle service Retro computer
Play an IPX game through an online community server IPX bridge (server) Real DOS running dalicom.exe
Play an IPX game between serially attached DOS computers Local IPX switch (switch) Real DOS running dalicom.exe
Play a game's modem or direct-dial mode Software modem (modem) The game's Hayes modem support
Dial a telnet BBS Software modem (modem) Terminal software such as HyperTerminal, Telix, or Procomm
Give Windows 9x internet or LAN access Dial-up ISP (PPP) Built-in Windows Dial-Up Networking
Give DOS mTCP internet or LAN access SLIP (slip) ETHERSL and mTCP

These services solve different problems:

  • IPX bridge and switch modes carry IPX for LAN games.
  • Modem mode carries the game's raw serial modem session over TCP.
  • PPP and SLIP carry IPv4 traffic for web, FTP, Samba, TCP/IP games, and other network applications.
  • PPP and SLIP do not carry Ethernet broadcasts, IPX, NetBEUI, or EtherDFS traffic.

Serial Cable Requirements

Every profile represents one serial connection to one retro computer. A modern host may use several USB-to-serial adapters and run several profiles at once.

  • IPX, SLIP, terminal, and many modem games generally need TX, RX, and ground.
  • Windows 9x Dial-Up Networking requires a full-handshake null-modem cable with modem-control signals, especially DTR and DCD.
  • The baud rate configured in Heddle must match the retro software.
  • 115200 is a good starting point. Lower it if the UART, adapter, or computer loses data.

IPX Games

Join An Online IPX Server

Use one server profile per DOS computer:

[profile "486 online IPX"]
mode        = server
serial      = COM4
baud        = 115200
server      = ipx.example.net
server-port = 10000
autostart   = true

On DOS:

dalicom com1 115200

Start the game and use its normal IPX network mode. To put several local DOS computers on the same online game, create one profile and serial connection per computer and point all profiles at the same IPX server.

Local IPX Game On One Heddle Host

Use switch mode when the DOS computers are physically connected to the same Heddle host:

[profile "486 local IPX"]
mode      = switch
serial    = COM4
baud      = 115200
autostart = true

[profile "Pentium local IPX"]
mode      = switch
serial    = COM5
baud      = 115200
autostart = true

Run dalicom on both DOS computers, then host and join an IPX game normally. No Ethernet network, IP addresses, external server, or internet connection is involved. All switch profiles in the same Heddle process share one local IPX network.

To join IPX computers attached to different Heddle hosts, use server mode on both hosts and connect them to the same IPXBox-compatible server. The built-in switch is local to one Heddle process.

Modem Games And Direct Calls

Modem mode turns each serial port into a Hayes-compatible modem. A call has two sides:

  • The answering side runs a TCP listener, such as listen = :9000.
  • The calling side dials the answering host and TCP port.
  • Only the answering side normally needs an inbound firewall or router rule.

The caller can dial a saved phonebook number, a direct host:port, or use the dashboard's Call control.

Two Computers On The Same Heddle Host

Create two modem profiles. Give the answering profile a listener:

[profile "Player 1 modem"]
mode      = modem
serial    = COM4
baud      = 115200
autostart = true

[profile "Player 2 modem"]
mode       = modem
serial     = COM5
baud       = 115200
listen     = :9000
autoanswer = true
autostart  = true

[phonebook]
player2 = 127.0.0.1:9000

Player 1 dials player2; Player 2 waits for or answers the call. The dashboard can also link two local modem profiles directly. For games with an "already connected" or "null modem" option, use the dashboard's Link control and select that option on both computers.

Two Heddle Hosts On The Same LAN

Suppose the answering Heddle host is 192.168.1.20.

Answering host:

[profile "Answering PC"]
mode       = modem
serial     = COM4
baud       = 115200
listen     = :9000
autoanswer = true
autostart  = true

Calling host:

[profile "Calling PC"]
mode      = modem
serial    = COM4
baud      = 115200
autostart = true

[phonebook]
friend = 192.168.1.20:9000

Allow inbound TCP port 9000 through the answering host's operating-system firewall. No router port forward is needed while both hosts are on the same LAN.

Two Heddle Hosts Across The Internet

Use the same profiles as the LAN example, with these changes:

  1. Forward TCP port 9000 on the answering site's router to the answering Heddle host.
  2. Allow TCP port 9000 through that host's firewall.
  3. On the calling side, map the number to the answering site's public IP address or DNS name:
[phonebook]
friend = games.example.net:9000

Only the answering side needs the port forward. If its ISP uses carrier-grade NAT or otherwise blocks inbound connections, place both Heddle hosts on a VPN that gives them mutually reachable addresses and dial the answering host's VPN address instead.

Do not configure both sides with their own router address such as 192.168.1.1:9000. Private addresses are meaningful only inside their own LAN. The caller must dial an address that routes to the remote Heddle listener.

Games That Use Already Connected

Some games do not complete a normal Hayes dial/answer handshake reliably. Heddle can establish the TCP call first and leave the serial carrier active.

Answering side:

[profile "Player 2"]
mode       = modem
serial     = COM4
baud       = 115200
listen     = :9000
autoaccept = true
autostart  = true

Calling side:

[profile "Player 1"]
mode      = modem
serial    = COM4
baud      = 115200
dial      = player2
autostart = true

[phonebook]
player2 = 192.168.1.20:9000

Start Heddle on both sides and wait for the dashboard to show the call as connected. Then choose the game's "already connected" option on both computers. Heddle treats dial and autoaccept links as persistent and does not tear them down when a game briefly changes DTR.

Dial A Telnet BBS

[profile "BBS modem"]
mode      = modem
serial    = COM4
baud      = 115200
telnet    = true
autostart = true

[phonebook]
bbs = bbs.example.net:23

From the terminal program:

ATDTbbs

telnet = true enables Telnet negotiation handling for all calls from that profile. Leave it automatic or off for raw modem games.

Windows 9x Dial-Up ISP (PPP)

PPP is for networking the Windows computer, not for emulating a direct modem game call. Windows dials the reserved number internet, Heddle terminates PPP, and Windows receives an IP address, gateway, DNS, and optional WINS server.

[profile "Windows 98 Internet"]
mode      = modem
role      = internet
serial    = COM4
baud      = 115200
wan       = on
lan       = 192.168.1.0/24
peers     = off
wins      = auto
autostart = true

The dashboard creates an internet-role profile and the reserved dial behavior automatically. In a hand-written configuration, internet and ppp are also recognized as built-in PPP dial identifiers; an explicit phonebook entry remains valid for compatibility:

[phonebook]
internet = ppp

On Windows 9x:

  1. Install a Standard Modem on the serial COM port.
  2. Create a Dial-Up Networking connection that dials internet.
  3. Leave the username and password blank.
  4. Use server-assigned IP, gateway, and DNS settings.
  5. Connect and verify the assigned settings with winipcfg.

Internet Only

wan   = on
lan   = off
peers = off

The retro computer can reach internet destinations but Heddle blocks the host's other Heddle clients. lan = off does not establish a LAN CIDR to classify and block; portable NAT may still follow the host operating system's route to a private address. Use host firewall rules when strict internet-only isolation is required.

LAN Only

wan   = off
lan   = 192.168.1.0/24
peers = off
wins  = auto

The retro computer can reach LAN services such as Samba, FTP, and game servers without receiving general internet access.

Internet And LAN File Shares

wan  = on
lan  = 192.168.1.0/24
wins = auto

wins = auto lets a NAT-mode PPP client resolve NetBIOS names such as \\RETROSERVER through the Heddle host's DNS resolver. It does not create or register LAN names; the host operating system must already be able to resolve the requested name.

Test name resolution from Windows first:

ping RETROSERVER

Then open the share:

\\RETROSERVER\SHARE

Windows 9x may try to restore mapped drives before PPP is fully connected. If a drive fails during login but works after dialing, reconnect it after the dial-up connection completes:

net use R: \\RETROSERVER\SHARE

Two PPP Or SLIP Clients On One Heddle Host

Create one profile per serial port and enable peers = on on both profiles:

[profile "Windows 98"]
mode      = modem
role      = internet
serial    = COM4
baud      = 115200
wan       = on
lan       = off
peers     = on
autostart = true

[profile "DOS mTCP"]
mode      = slip
serial    = COM5
baud      = 115200
wan       = on
lan       = off
peers     = on
autostart = true

Heddle routes directly between mutually opted-in clients. This can support TCP/IP games, FTP, or other direct-IP applications. Use the assigned client addresses shown in the dashboard or winipcfg.

peers applies only to clients attached to the same Heddle process. It does not create a VPN between separate Heddle hosts.

DOS mTCP Through SLIP

[profile "DOS Internet"]
mode      = slip
serial    = COM4
baud      = 115200
wan       = on
lan       = 192.168.1.0/24
peers     = off
autostart = true

Load ETHERSL on DOS using the matching COM port and baud. For the simplest mTCP configuration, put this in mtcp.cfg:

DHCP

In portable NAT mode, Heddle supplies a private point-to-point address and acts as gateway and DNS. With the OpenWrt TAP uplink, OpenWrt supplies a normal LAN lease.

SLIP carries IPv4 only. DOS software that requires Ethernet frames, IPX broadcasts, NetBEUI, or EtherDFS will not work through SLIP.

NAT Versus OpenWrt TAP

Behavior Portable NAT OpenWrt TAP
Works on Windows, macOS, and Linux without special setup Yes No
Retro client uses a private Heddle-managed address Yes No
Retro client receives a normal OpenWrt LAN address No Yes
Other LAN hosts can initiate IP connections to the retro client Usually no Yes
OpenWrt owns DHCP, firewall, reservations, and routing No Yes
Carries arbitrary Ethernet layer-2 traffic No No

TAP integrates PPP and SLIP clients into the LAN at the IP layer. The serial protocol remains PPP or SLIP, so TAP does not turn the serial cable into a general Ethernet bridge.

OpenWrt configuration:

uplink = tap:heddle0

Leave the profile's ppp-ip/ppp-mask/ppp-gateway or slip-ip/slip-mask/slip-gateway fields blank to use OpenWrt DHCP. See the OpenWrt package guide for installation, service management, and LuCI details.

Port And Firewall Checklist

Service Transport Inbound rule needed
IPX bridge to a public server Usually outbound UDP Normally none
Local IPX switch Serial only None
Modem answering listener TCP, configured by listen Allow on host; forward on router for WAN calls
Modem caller Outbound TCP Normally none
PPP/SLIP portable NAT Outbound through Heddle Normally none
PPP/SLIP OpenWrt TAP LAN traffic controlled by OpenWrt Follow OpenWrt firewall policy
Heddle dashboard TCP, default 8080 Allow only on networks that should administer Heddle

Do not expose the Heddle dashboard directly to the public internet. Use a local network or an authenticated VPN for remote administration.

The dashboard has no built-in authentication or TLS. See the operations security model before binding it to anything beyond a trusted LAN.

The wan, lan, and peers policy controls apply to portable NAT. With the OpenWrt TAP uplink, OpenWrt's bridge and firewall own reachability policy.

Troubleshooting By Symptom

The Modem Game Rings But Does Not Connect

  • Try autoanswer = true if the game does not send ATA.
  • Try autoanswer = false if the game expects to answer the call itself.
  • For a game with an "already connected" option, use autoaccept and dial instead of relying on its modem handshake.
  • Confirm the listener's TCP port is reachable from the caller.

The PPP Connection Does Not Start

  • Use a full-handshake null-modem cable.
  • Confirm the Windows modem uses the correct COM port and baud.
  • Dial internet with blank credentials.
  • Leave the profile's carrier behavior on automatic unless diagnosing a specific compatibility problem.

A LAN Hostname Works On The Heddle Host But Not Windows 9x

  • Set wins = auto in a NAT-mode PPP profile.
  • Disconnect and redial so IPCP can assign the WINS address.
  • Confirm the Heddle activity log shows a PPP/WINS lookup.
  • Try the server's IP address to separate name-resolution problems from SMB compatibility or authentication problems.

A Mapped Samba Drive Fails At Windows Startup

Windows may restore the drive before dial-up finishes. Connect PPP first, then open or remap the drive.

A WAN Modem Call Never Rings

  • Verify the answering profile has listen = :PORT.
  • Allow that TCP port through the answering computer's firewall.
  • Forward the same TCP port on the answering site's router.
  • Dial the remote public or VPN address, not the caller's own router address.
  • Check whether the answering ISP uses carrier-grade NAT.