PortGate

Blueprints · Node.js & Next.js

Beginner 5 min · Node.js

Node inspector closed

Checks whether anything is listening on the Node inspector port.

Baked-in protections

Step 1 · bash

Read-only check

/root/portgate-blueprints/inspector-check.sh

Prints status. It does not change the service.

#!/bin/sh
set -eu
ss -tulpn | grep 9229 || echo "Nothing is listening on 9229."

Step 2 · text

Unit reminder

/root/portgate-blueprints/no-inspect.txt

A production ExecStart does not include --inspect.

ExecStart=/usr/bin/node server.js
Do not add --inspect or --inspect=0.0.0.0.