HTTPfy

Port 40000 (safetynetp)

IANA assigns port 40000 to safetynetp: SafetyNET p.

Registered (user) port, 1024-49151 TCPUDP

IANA assignment

Service nameProtoDescriptionAssigneeReference
safetynetp TCP SafetyNET p Pilz GmbH and Co. KG -
safetynetp UDP SafetyNET p Pilz GmbH and Co. KG -

Registry dates for this port: registered 2006-11, last modified 2022-12-15.

Check what is listening on port 40000

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

Test it from outside

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

Block port 40000 in the firewall

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

Related ports

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