netscrew.dev/commands/host
Command

n host

LAN discoverability audit

Short forms:h · ho · visibility · discover

Usage — n host

═══════════════════════════════════════════════════════════════════════════════
  Netscrew ("n") — host (h, ho, visibility) — LAN discoverability audit (mDNS/WSD/firewall profile)
═══════════════════════════════════════════════════════════════════════════════

USAGE:
  n h .                                audit how discoverable this machine is on the LAN
  n h . --fix                          repair it (enables SSH/RDP, opens ports — asks first)

Target: . = this machine · <host> = remote
Deeper: n h -h = the concept/theory behind this command

The concept behind it — n host -h

═══════════════════════════════════════════════════════════════════════════════
  NETSCREW GUIDE: Host LAN Visibility & Discoverability ("n host")
═══════════════════════════════════════════════════════════════════════════════

THE 4 HIDDEN PITFALLS OF PEER NETWORKING:
  1. Network Profiles (Public vs Private):
     Windows defaults new connections to 'Public' (the brick wall). In Public mode,
     Windows Firewall silently ignores ICMP echo (ping), drops NetBIOS/LLMNR/mDNS,
     and disables File & Printer Sharing—even if turned on in Control Panel!
     Set adapter to Private to permit peer discovery.

  2. The FDResPub Ghost (Windows Explorer Disappearances):
     Windows Explorer discovery relies on WSD (Web Services on Devices). The service
     'FDResPub' (Function Discovery Resource Publication) is set to 'Manual' by
     default on clean installs. Without setting it to Automatic, the machine will
     NOT announce itself to other PCs in the 'Network' folder.

  3. Windows Hello Passwordless RDP Lockout:
     Windows 11 defaults to "Only allow Windows Hello sign-in for Microsoft accounts".
     Since RDP / CredSSP does NOT support PINs or facial recognition, remote logins
     with your account password fail with cryptic authentication errors!
     Fixing DevicePasswordLessBuildVersion = 0 unblocks password RDP logins.

  4. Split-Brain Multi-Homing (Ethernet + Wi-Fi):
     Having Wi-Fi and Ethernet active simultaneously on the same router subnet causes
     asymmetric routing and ARP flapping, resulting in random dropped connections.

AUTOMATIC REPAIR:
  • n host             Perform non-destructive 6-stage LAN visibility audit
  • n host --fix       (As Admin/root) Automatically apply fixes:
                      - Set physical adapters to Private profile
                      - Enable File & Printer Sharing + RDP firewall rules
                      - Set FDResPub, SSDPSrv, upnphost to Automatic & Start
                      - Remove Windows Hello passwordless RDP lockout
                      - Disable AC standby sleep so host stays alive