HTTPfy

Port 5037 (ADB server)

Local adb server on the development machine that talks to connected Android devices.

Registered (user) port, 1024-49151 TCP Development tools Localhost or LAN only

What port 5037 is used for

Local adb server on the development machine that talks to connected Android devices.

Security: should port 5037 be open?

Localhost or LAN only. Should only listen on localhost.

IANA assignment

Port 5037 is in the registered range and has no IANA assignment. The usage above is unofficial but widespread.

Check what is listening on port 5037

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

Test it from outside

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

Block port 5037 in the firewall

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

Related ports

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