CyberHunter
Local dataset, no network
// Email

Port 5157: Mediat Remote Object Exchange

Port 5157 is assigned by IANA to mediat (Mediat Remote Object Exchange).

5157

How mediat works

Email
your servertheir servermediat youthemmediat

Mail servers hand messages to each other over port 5157, one hop at a time, until the recipient's server.

Transport
TCP
Exposure risk
not rated depends on the program listening
Encryption
Unknownnot stated by the registry
IANA status
Assigned1 registered service
Range
Registered (1024-49151)
Category
Email
01 Security

Is port 5157 dangerous?

We have no specific security note for port 5157. Its risk depends on the program actually listening on it. General advice for email services:

  • Require TLS and authenticated submission.
  • Make sure the server is not an open relay.
  • Publish SPF, DKIM and DMARC for the domain.
02 Registry

IANA registry entries for port 5157

ServicePortTransportDescriptionReferenceUpdated
mediat 5157 TCP Mediat Remote Object Exchange - 2010-09-02
-5157-Reserved--

// source: IANA service name and port number registry

03 Check it

Which program uses port 5157, and is it reachable?

Linux

sudo ss -ltnup 'sport = :5157'      # process listening on 5157
sudo lsof -nP -i :5157

macOS

sudo lsof -nP -i :5157

Windows (PowerShell)

Get-NetTCPConnection -LocalPort 5157 -State Listen | Select LocalAddress, OwningProcess
Get-NetUDPEndpoint -LocalPort 5157
netstat -ano | findstr :5157

From another machine

nmap -p 5157 -sV <host>
nc -zv <host> 5157

Block it in the firewall

sudo ufw deny 5157/tcp                                         # Linux (ufw)
New-NetFirewallRule -DisplayName "Block 5157" -Direction Inbound -LocalPort 5157 -Protocol TCP -Action Block  # Windows
04 FAQ
What is port 5157 used for?

Port 5157 is assigned by IANA to mediat (Mediat Remote Object Exchange).

Is port 5157 TCP or UDP?

Port 5157 is registered for TCP.

Is it safe to open port 5157?

It depends on the program that listens on it. Open it only for a service you know and only to the networks that need it. Require TLS and authenticated submission.

How do I check if port 5157 is open?

On Linux run "ss -ltnup 'sport = :5157'", on macOS "lsof -nP -i :5157", and on Windows "netstat -ano | findstr :5157" to see the local process. From another machine, "nmap -p 5157 <host>" shows whether it is reachable.

05 Related

Latest vulnerability news

All news