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
- Port Inspector (COM ports, network adapters, «This PC») and Hardware Tester read settings and logs without administrator rights. They install no drivers and change no registry values or Windows settings.
- Results go only as far as «Worth a look», possible causes and «Where to change» (which Windows screen). You make any change yourself in Windows.
- (from 0.10.0) The exposure check in Port Inspector «This PC» (Remote Desktop, SMBv1, firewall, ports listening on all addresses, automatic sign-in, USB AutoPlay) and Net Scan's «Exposed» tag only read too. For automatic sign-in only the presence of a password value is checked, never its contents. Net Scan never scans extra ports for the tag. How to read it: Reading a field PC exposure check
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.
| Program | Default address | Opening 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 · Simulator | 127.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 |
| UDP | 0.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
- (from 0.10.0) In Modbus Master's «Settings backup & restore», the restore (write) tab opens with nothing picked. «Write» stays off until «Preview» has read the current values, and nothing is written if not a single cell could be read. After «Write» you press «Confirm write» once more before anything is sent, and afterwards every cell is read back and shown as match, differ, write failed or not read back.
- On RTU, restoring to address 0 (broadcast — every device on the bus takes it) or the reserved addresses 248–255 is blocked. Input registers (04), discrete inputs (02) and registers marked read-only in the device profile are blocked too.
- In PLC Simulator, a fill that would overwrite cells that already hold values asks once more.
- Do not write to a running machine. Many devices need a separate «save» command to keep values after power-off — check the writable range in the device manual first.
4. AI (MCP) write tools
- PortDock MCP's two write tools (modbus_write_sim, mc_write_sim) accept only loopback addresses (127.0.0.1, ::1, localhost). All other tools are read-only.
- (from 0.10.0) The Modbus write (modbus_write_sim) first asks the target for its identification (FC 2B/0E) and writes only if the vendor name begins with «PortDock» (PortDock Modbus Slave's default), so it refuses forwarders to real devices such as the Serial gateway listening on 127.0.0.1:502 on the same PC.
- The MC write (mc_write_sim) is checked by address only. If a program on this PC forwards 127.0.0.1 to another device (a TCP relay, a vendor gateway, a tunnel), a write through an AI client can reach that device — do not hand writes to an AI while such a program runs. Setup: Using PortDock MCP
5. What leaves your PC
- Device traffic goes only to the ports and addresses you choose and is never sent anywhere else.
- Usage statistics are off by default and sent only if you agree (asked once on first run; you can turn them off in settings). Only feature use counts, minutes open, program/Windows version, display language and installed/portable edition are sent — never traffic, IP addresses, ports, COM names, file paths or PC/user/device names.
- «AI» copy puts the preview text on the clipboard only. User folders, default Windows PC names, the last 3 bytes of MAC addresses and public IPs are masked; private IPs are kept by default (the preview can mask them too). Pasting into an AI chat sends it to that service, so check the preview first.
- Web tools (calculators, frame decoders, hardware tests) process what you type and the files you pick inside this browser and never send them to a server.
- Error reports, the update check and the other exceptions (Hardware Tester's pings and DNS lookups) are all listed in the privacy policy.
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
- Released files are not code-signed at the moment, so Windows may show «Windows protected your PC» — see the code signing policy.
- Download only from GitHub Releases and compare against the SHA256 values (SHA256SUMS.txt) and the Microsoft Defender scan result posted with every release. How: Download → Is it safe?
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.