- Use strong credentials and TLS for signalling.
- Rate-limit registrations to stop extension scanning and toll fraud.
- Alert on unexpected chat protocols leaving servers (possible command and control).
Port 2727: Media Gateway Control Protocol Call Agent
Port 2727 is assigned by IANA to mgcp-callagent (Media Gateway Control Protocol Call Agent).
How mgcp-callagent works
Voice & chatPort 2727 sets up the call (who calls whom), then the voice travels as a stream of audio packets.
- 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
- Voice & chat
Is port 2727 dangerous?
We have no specific security note for port 2727. Its risk depends on the program actually listening on it. General advice for voice & chat services:
IANA registry entries for port 2727
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| mgcp-callagent | 2727 | TCP, UDP | Media Gateway Control Protocol Call Agent | - | - |
// source: IANA service name and port number registry
Which program uses port 2727, and is it reachable?
Linux
sudo ss -ltnup 'sport = :2727' # process listening on 2727
sudo lsof -nP -i :2727macOS
sudo lsof -nP -i :2727
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 2727 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 2727 netstat -ano | findstr :2727
From another machine
nmap -p 2727 -sV <host> sudo nmap -sU -p 2727 <host> nc -zv <host> 2727
Block it in the firewall
sudo ufw deny 2727/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 2727" -Direction Inbound -LocalPort 2727 -Protocol TCP -Action Block # Windows
What is port 2727 used for?
Port 2727 is assigned by IANA to mgcp-callagent (Media Gateway Control Protocol Call Agent).
Is port 2727 TCP or UDP?
Port 2727 is registered for TCP and UDP.
Is it safe to open port 2727?
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. Use strong credentials and TLS for signalling.
How do I check if port 2727 is open?
On Linux run "ss -ltnup 'sport = :2727'", on macOS "lsof -nP -i :2727", and on Windows "netstat -ano | findstr :2727" to see the local process. From another machine, "nmap -p 2727 <host>" shows whether it is reachable.