HTTPfy

Port 2797 (esp-encap)

IANA assigns port 2797 to esp-encap.

Registered (user) port, 1024-49151 TCPUDP

IANA assignment

Service nameProtoDescriptionAssigneeReference
esp-encap TCP esp-encap Jorn Sierwald -
esp-encap UDP esp-encap Jorn Sierwald -

Check what is listening on port 2797

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

Test it from outside

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

Block port 2797 in the firewall

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

Related ports

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