HTTPfy

Port 5005 (Java debug (JDWP))

Conventional port for the Java Debug Wire Protocol (-agentlib:jdwp=...,address=*:5005), used by IntelliJ and Spring Boot remote debugging.

Registered (user) port, 1024-49151 TCP Development tools Localhost or LAN only

What port 5005 is used for

Conventional port for the Java Debug Wire Protocol (-agentlib:jdwp=...,address=*:5005), used by IntelliJ and Spring Boot remote debugging.

Security: should port 5005 be open?

Localhost or LAN only. JDWP has no authentication and allows arbitrary code execution; never expose it.

IANA assignment

Service nameProtoDescriptionAssigneeReference
avt-profile-2 TCP RTP control protocol - RFC 3551, RFC 4571
avt-profile-2 UDP RTP control protocol - RFC 3551
avt-profile-2 DCCP RTP control protocol - RFC 3551, RFC 5762

Check what is listening on port 5005

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

Test it from outside

From another machine
nc -vz -w 5 HOST 5005
From Windows
Test-NetConnection HOST -Port 5005

Block port 5005 in the firewall

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

Related ports

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