PortDock

PortDock safety principles — what it does and does not do

These tools sit next to real equipment, so this page lists in one place what is only read and what is written, where connections are accepted and what leaves your PC. The details are in the repository's SECURITY.md and each program's guide.

1. Checks only read

2. Where servers accept connections

Modbus, MC protocol, the LS XGT dedicated protocol, SCPI raw sockets and plain TCP/UDP have no authentication. Once a PortDock server is on, anyone who can reach its port can talk to it, so each program has a default address as below.

ProgramDefault addressOpening it to other PCs
PLC Simulator (MC on TCP 5000 by default, from 0.10.0 XGT on TCP 2004 / UDP 2005)127.0.0.1 (this PC only)Only after you turn on «Allow other PCs to connect (0.0.0.0)»
Serial port sharing (from 0.10.0 — raw or RFC 2217 on TCP 7000, Modbus TCP ↔ RTU gateway on TCP 502 by default)127.0.0.1 (this PC only)With «Allow other PCs to connect (0.0.0.0)» on, starting asks once more. The choice is not remembered, so the next start is 127.0.0.1 again.
Modbus Slave (TCP) · TCP server and relay · Simulator127.0.0.1 (this PC only; first-run default from 0.10.0 — settings saved by earlier versions are kept)Only after you pick 0.0.0.0 (all network adapters) or one adapter's address in its address box
UDP0.0.0.0 (all network adapters)Receives on every adapter because it has to get the devices' replies. You can change it to one adapter's address or 127.0.0.1 in the address box.

Open servers to other PCs only on networks you trust. The gateway passes reads and writes on to the RS-485 devices. Requests to Unit ID 0 get exception 0A (no route) by default; only if you choose «Broadcast» do they go to every device on the bus. The basics of separating networks and closing ports are in Modbus, MC and XGT have no authentication.

3. Writing to devices

4. AI (MCP) write tools

5. What leaves your PC

6. Value watch and alarms are not safety devices

Value watch and alarms in Modbus Master and Plot help the person watching the screen. If the PC sleeps or the link drops they may not go off. Protecting people and machines is the job of proper safety devices — emergency stops, interlocks, safety relays — and PortDock must not stand in for them.

7. Electrical work

PortDock and its guides help with communication checks; they do not teach electrical work. Work on terminals and wiring is for qualified people, after isolating and locking out the supply (LOTO) and confirming it is dead with a voltage tester. Follow official guidance such as OSHA electrical safety or your national safety agency, and your site's procedures.

8. Checking downloaded files

9. Reporting a security problem

Please do not open a public issue. Report privately through GitHub security advisories (Report a vulnerability) or by email (subject starting with [security]). Scope and what to expect are in SECURITY.md. PortDock is maintained by one person in their spare time, so there is no guaranteed fix date and no bug bounty.