HTTPfy

Port 2940 (sm-pas-3)

IANA assigns port 2940 to sm-pas-3: SM-PAS-3.

Registered (user) port, 1024-49151 TCPUDP

IANA assignment

Service nameProtoDescriptionAssigneeReference
sm-pas-3 TCP SM-PAS-3 - -
sm-pas-3 UDP SM-PAS-3 - -

Check what is listening on port 2940

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

Test it from outside

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

Block port 2940 in the firewall

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

Related ports

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