HTTPfy

Port 5157 (mediat)

IANA assigns port 5157 to mediat: Mediat Remote Object Exchange.

Registered (user) port, 1024-49151 TCP

IANA assignment

Service nameProtoDescriptionAssigneeReference
mediat TCP Mediat Remote Object Exchange Oliver Anan -

Registry dates for this port: registered 2010-09-02.

Check what is listening on port 5157

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

Test it from outside

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

Block port 5157 in the firewall

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

Related ports

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