HTTPfy

Port 5004 (RTP media)

IANA's RTP AVT profile port, used as the default RTP port by some streaming tools; most VoIP systems allocate RTP from a range (for example 10000-20000).

Registered (user) port, 1024-49151 UDP Streaming Expose only to trusted sources

Port 5004 is normally used over UDP; the checker tests TCP only, so a "filtered" result does not mean the UDP service is down.

What port 5004 is used for

IANA's RTP AVT profile port, used as the default RTP port by some streaming tools; most VoIP systems allocate RTP from a range (for example 10000-20000).

Security: should port 5004 be open?

Expose only to trusted sources. Open the media range only towards your SIP provider or media servers.

IANA assignment

Service nameProtoDescriptionAssigneeReference
avt-profile-1 TCP RTP media data - RFC 3551, RFC 4571
avt-profile-1 UDP RTP media data - RFC 3551
avt-profile-1 DCCP RTP media data - RFC 3551, RFC 5762

Check what is listening on port 5004

Linux: UDP 5004
sudo ss -ulnp 'sport = :5004'
Linux / macOS: which process owns the port
sudo lsof -nP -i :5004
Windows (Command Prompt)
netstat -ano | findstr :5004
Windows (PowerShell)
Get-NetUDPEndpoint -LocalPort 5004

Test it from outside

UDP probe (no reply does not prove it is closed)
nc -vzu -w 5 HOST 5004

Allow only trusted sources on port 5004 in the firewall

Replace 203.0.113.10 with the address or network you trust. With ufw, make sure the default incoming policy is deny.

ufw (one trusted source)
sudo ufw allow from 203.0.113.10 to any port 5004 proto udp
iptables
sudo iptables -A INPUT -p udp --dport 5004 -s 203.0.113.10 -j ACCEPT
sudo iptables -A INPUT -p udp --dport 5004 -j DROP
nftables
sudo nft add rule inet filter input ip saddr 203.0.113.10 udp dport 5004 accept
sudo nft add rule inet filter input udp dport 5004 drop
Windows Firewall
New-NetFirewallRule -DisplayName 'UDP 5004 trusted' -Direction Inbound -Protocol UDP -LocalPort 5004 -RemoteAddress 203.0.113.10 -Action Allow

Related ports

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