HTTPfy

Port 4791 (roce)

IANA assigns port 4791 to roce: IP Routable RocE.

Registered (user) port, 1024-49151 UDP

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

IANA assignment

Service nameProtoDescriptionAssigneeReference
roce UDP IP Routable RocE InfiniBand Trade Association -

Registry dates for this port: registered 2014-10-17.

Check what is listening on port 4791

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

Test it from outside

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

Block port 4791 in the firewall

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

Related ports

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