HTTPfy

Port 177 (xdmcp)

IANA assigns port 177 to xdmcp: X Display Manager Control Protocol.

Well-known (system) port, 0-1023 TCPUDP

IANA assignment

Service nameProtoDescriptionAssigneeReference
xdmcp TCP X Display Manager Control Protocol Robert W Scheifler -
xdmcp UDP X Display Manager Control Protocol Robert W Scheifler -

Check what is listening on port 177

Linux: is anything listening on TCP 177?
sudo ss -tlnp 'sport = :177'
Linux: UDP 177
sudo ss -ulnp 'sport = :177'
Linux / macOS: which process owns the port
sudo lsof -nP -i :177
Older Linux / BSD (net-tools)
sudo netstat -tlnp | grep ':177 '
Windows (Command Prompt)
netstat -ano | findstr :177
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 177 -State Listen | Select LocalAddress,OwningProcess

Test it from outside

From another machine
nc -vz -w 5 HOST 177
From Windows
Test-NetConnection HOST -Port 177
UDP probe (no reply does not prove it is closed)
nc -vzu -w 5 HOST 177

Block port 177 in the firewall

ufw
sudo ufw deny 177/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 177 -j DROP
nftables
sudo nft add rule inet filter input tcp dport 177 drop
Windows Firewall
New-NetFirewallRule -DisplayName 'Block TCP 177' -Direction Inbound -Protocol TCP -LocalPort 177 -Action Block
ufw
sudo ufw deny 177/udp
iptables
sudo iptables -A INPUT -p udp --dport 177 -j DROP
nftables
sudo nft add rule inet filter input udp dport 177 drop
Windows Firewall
New-NetFirewallRule -DisplayName 'Block UDP 177' -Direction Inbound -Protocol UDP -LocalPort 177 -Action Block

Related ports

All port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.