node --inspect=0.0.0.0:9229 server.js

Category: Node.js & npm/yarn

node --inspect=0.0.0.0:9229 server.js

Debug a server from another machine

Starts the inspector on all interfaces at port 9229, letting Chrome DevTools or VS Code attach remotely over the network. The default --inspect binds to localhost only, so the explicit address is required for containers or remote hosts. Firewall rules must allow the port.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.