HTTPfy

Port 7871 (mdm)

IANA assigns port 7871 to mdm: Mobile Device Management.

Registered (user) port, 1024-49151 TCP

IANA assignment

Service nameProtoDescriptionAssigneeReference
mdm TCP Mobile Device Management Dan Harkins -

Registry dates for this port: registered 2011-08-15.

Check what is listening on port 7871

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

Test it from outside

From another machine
nc -vz -w 5 HOST 7871
From Windows
Test-NetConnection HOST -Port 7871

Block port 7871 in the firewall

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

Related ports

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