Ports 5357 and 5358 · TCP

Ports 5357 and 5358: WSDAPI (network discovery)

Web Services on Devices: network printers, scanners and PCs describing themselves to each other. 5358 is the HTTPS version.

Protocol
TCP
On Windows
System (PID 4, Web Services on Devices via http.sys)
Risk if open to the internet
High

Seeing it on your PC

System (PID 4) listening on 5357 with network discovery turned on.

Should you block it?

Local network only. Turning off network discovery on public networks closes it there.

Check it on your PC

Run this in PowerShell to see what is using port 5357 right now, and which program owns it:

Get-NetTCPConnection -LocalPort 5357 -ErrorAction SilentlyContinue | Select-Object LocalAddress,LocalPort,RemoteAddress,RemotePort,State,@{n='Process';e={(Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue).ProcessName}}

No output means nothing is using the port at the moment. For every connection at once, paste netstat -ano into the netstat explainer.

Block it in Windows Firewall

In PowerShell run as administrator, this stops other computers from connecting to this port on your PC. It does not stop your own programs connecting out.

New-NetFirewallRule -DisplayName "Block inbound TCP 5357,5358" -Direction Inbound -Protocol TCP -LocalPort 5357,5358 -Action Block

Undo it with Remove-NetFirewallRule -DisplayName "Block inbound …", using the same name. If you depend on the service on your local network, this rule stops that too.