- Require authentication on cameras and media servers.
- Keep IP cameras and recorders off the Internet; use a VPN for remote viewing.
- Update device firmware.
Port 2789: Media Agent
Port 2789 is assigned by IANA to media-agent (Media Agent).
How media-agent works
Media & streamingThe device streams video frames over port 2789, continuously, as they are captured.
- Transport
- TCP · UDP
- 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
- Media & streaming
Is port 2789 dangerous?
We have no specific security note for port 2789. Its risk depends on the program actually listening on it. General advice for media & streaming services:
IANA registry entries for port 2789
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| media-agent | 2789 | TCP, UDP | Media Agent | - | - |
// source: IANA service name and port number registry
Which program uses port 2789, and is it reachable?
Linux
sudo ss -ltnup 'sport = :2789' # process listening on 2789
sudo lsof -nP -i :2789macOS
sudo lsof -nP -i :2789
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 2789 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 2789 netstat -ano | findstr :2789
From another machine
nmap -p 2789 -sV <host> sudo nmap -sU -p 2789 <host> nc -zv <host> 2789
Block it in the firewall
sudo ufw deny 2789/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 2789" -Direction Inbound -LocalPort 2789 -Protocol TCP -Action Block # Windows
What is port 2789 used for?
Port 2789 is assigned by IANA to media-agent (Media Agent).
Is port 2789 TCP or UDP?
Port 2789 is registered for TCP and UDP.
Is it safe to open port 2789?
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 authentication on cameras and media servers.
How do I check if port 2789 is open?
On Linux run "ss -ltnup 'sport = :2789'", on macOS "lsof -nP -i :2789", and on Windows "netstat -ano | findstr :2789" to see the local process. From another machine, "nmap -p 2789 <host>" shows whether it is reachable.