Not assigned by IANA. Historically the port of the Back Orifice trojan (1998); now mostly a joke port used in CTFs and demos.
Not assigned by IANA. Historically the port of the Back Orifice trojan (1998); now mostly a joke port used in CTFs and demos.
Do not expose to the internet. Unexpected listeners on 31337 are worth investigating.
Registry dates for this port: registered 2021-05-14.
sudo ss -tlnp 'sport = :31337'sudo ss -ulnp 'sport = :31337'sudo lsof -nP -i :31337sudo netstat -tlnp | grep ':31337 'netstat -ano | findstr :31337Get-NetTCPConnection -LocalPort 31337 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 31337Test-NetConnection HOST -Port 31337nc -vzu -w 5 HOST 31337sudo ufw deny 31337/tcpsudo iptables -A INPUT -p tcp --dport 31337 -j DROPsudo nft add rule inet filter input tcp dport 31337 dropNew-NetFirewallRule -DisplayName 'Block TCP 31337' -Direction Inbound -Protocol TCP -LocalPort 31337 -Action Blocksudo ufw deny 31337/udpsudo iptables -A INPUT -p udp --dport 31337 -j DROPsudo nft add rule inet filter input udp dport 31337 dropNew-NetFirewallRule -DisplayName 'Block UDP 31337' -Direction Inbound -Protocol UDP -LocalPort 31337 -Action BlockAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.