- Require TLS and authenticated submission.
- Make sure the server is not an open relay.
- Publish SPF, DKIM and DMARC for the domain.
Port 5157: Mediat Remote Object Exchange
Port 5157 is assigned by IANA to mediat (Mediat Remote Object Exchange).
How mediat works
EmailMail 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
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:
IANA registry entries for port 5157
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| mediat | 5157 | TCP | Mediat Remote Object Exchange | - | 2010-09-02 |
| - | 5157 | - | Reserved | - | - |
// source: IANA service name and port number registry
Which program uses port 5157, and is it reachable?
Linux
sudo ss -ltnup 'sport = :5157' # process listening on 5157
sudo lsof -nP -i :5157macOS
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
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.